1
0
mirror of https://github.com/golang/go synced 2024-11-16 18:04:39 -07:00

os: close pipe in test

Change-Id: Ic8b06c6fd9fc6a30b26f4e4614aa40b5cad3a5e7
GitHub-Last-Rev: 8397a8b30c
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>
This commit is contained in:
guoguangwu 2024-03-11 05:03:53 +00:00 committed by Gopher Robot
parent ed08d01dc3
commit 3e1a6925a1

View 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")
}