1
0
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:
guoguangwu 2024-03-11 19:07:22 +08:00
parent 1e433915ce
commit 98861f8d6e

View File

@ -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() {