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