From: guoguangwu Date: Mon, 11 Mar 2024 05:03:53 +0000 (+0000) Subject: os: close pipe in test X-Git-Tag: go1.23rc1~925 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3e1a6925a1a635ceb29139d2d9268584fae88173;p=gostls13.git 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 LUCI-TryBot-Result: Go LUCI Reviewed-by: Ian Lance Taylor Reviewed-by: Cherry Mui --- 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") }