mirror of
https://github.com/golang/go
synced 2024-09-19 07:52:34 +00:00
io: close PipeReader in test
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
parent
1e433915ce
commit
98861f8d6e
|
@ -286,7 +286,7 @@ func TestWriteNil(t *testing.T) {
|
|||
|
||||
func TestWriteAfterWriterClose(t *testing.T) {
|
||||
r, w := Pipe()
|
||||
|
||||
defer r.Close()
|
||||
done := make(chan bool)
|
||||
var writeErr error
|
||||
go func() {
|
||||
|
|
Loading…
Reference in a new issue