aboutsummaryrefslogtreecommitdiff
path: root/src/io
diff options
context:
space:
mode:
authorguoguangwu <guoguangwug@gmail.com>2024-03-11 11:09:50 +0000
committerGopher Robot <gobot@golang.org>2024-03-11 19:49:15 +0000
commit80157f4cff014abb418004c0892f4fe48ee8db2e (patch)
tree7f8d2e68b8f468f3ab29ae71eb43a1dca0d05353 /src/io
parentb4b9746e5170d50475b9c0d60073ce5e74b7aae1 (diff)
downloadgo-80157f4cff014abb418004c0892f4fe48ee8db2e.tar.xz
io: close PipeReader in test
Change-Id: I33858efc00dff02432f28f1e5a94aeea261a5bad GitHub-Last-Rev: 98861f8d6e187a03330a0947ff651826024fcad2 GitHub-Pull-Request: golang/go#66230 Reviewed-on: https://go-review.googlesource.com/c/go/+/570357 Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Robert Griesemer <gri@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/io')
-rw-r--r--src/io/pipe_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io/pipe_test.go b/src/io/pipe_test.go
index 8973360740..c5fa017fa5 100644
--- a/src/io/pipe_test.go
+++ b/src/io/pipe_test.go
@@ -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() {