diff options
author | guoguangwu <guoguangwug@gmail.com> | 2024-03-11 05:03:53 +0000 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-03-11 17:08:40 +0000 |
commit | 3e1a6925a1a635ceb29139d2d9268584fae88173 (patch) | |
tree | ef484382d77df29e164cf199783576f672ab8dd7 /src/os | |
parent | ed08d01dc37bba55379f4871830dc3e38c22c0c7 (diff) | |
download | go-3e1a6925a1a635ceb29139d2d9268584fae88173.tar.gz go-3e1a6925a1a635ceb29139d2d9268584fae88173.zip |
os: close pipe in test
Change-Id: Ic8b06c6fd9fc6a30b26f4e4614aa40b5cad3a5e7
GitHub-Last-Rev: 8397a8b30cf11c00e53b35e528f82a8534a00e01
GitHub-Pull-Request: golang/go#66240
Reviewed-on: https://go-review.googlesource.com/c/go/+/570515
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/os')
-rw-r--r-- | src/os/fifo_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os/fifo_test.go b/src/os/fifo_test.go index df4b2ee757..e0386a2d28 100644 --- a/src/os/fifo_test.go +++ b/src/os/fifo_test.go @@ -190,6 +190,7 @@ func TestNewFileNonBlocking(t *testing.T) { if err != nil { t.Fatal(err) } + defer f.Close() if !nonblock { t.Error("pipe blocking after NewFile") } |