From 832c70e33d8265116f0abce436215b8e9ee4bb08 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Thu, 6 May 2021 23:15:37 +0800 Subject: [PATCH] internal/poll: cast off the last reference of SplicePipe in test Updates #45059 Change-Id: I9f377abcc7b77136ae6cf4896b968f73c758b559 Reviewed-on: https://go-review.googlesource.com/c/go/+/317510 Reviewed-by: Bryan C. Mills Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Go Bot --- src/internal/poll/splice_linux_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/internal/poll/splice_linux_test.go b/src/internal/poll/splice_linux_test.go index 3629ef1b20d..280468c7e74 100644 --- a/src/internal/poll/splice_linux_test.go +++ b/src/internal/poll/splice_linux_test.go @@ -46,6 +46,7 @@ func TestSplicePipePool(t *testing.T) { poll.PutPipe(p) } ps = nil + p = nil // Exploit the timeout of "go test" as a timer for the subsequent verification. timeout := 5 * time.Minute