mirror of
https://github.com/golang/go
synced 2024-11-16 16:14:40 -07: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 New Issue
Block a user