]> Cypherpunks repositories - gostls13.git/commitdiff
os: close pipe in test
authorguoguangwu <guoguangwug@gmail.com>
Mon, 11 Mar 2024 05:03:53 +0000 (05:03 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 11 Mar 2024 17:08:40 +0000 (17:08 +0000)
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>
src/os/fifo_test.go

index df4b2ee757c6a58ef6f146b0ae37ee9bacf944a1..e0386a2d28cac3033c6b02301d484f72eebfabb8 100644 (file)
@@ -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")
        }