From 0c83e01e0c1df712002af8bded845fbca9677ffa Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 18 Aug 2021 09:03:44 +0200 Subject: [PATCH] cmd/go/testdata/script: fix test script added by CL 334873 CL 334873 added the net/http import to the wrong section in test_vet.txt. Correct this to fix the longtest builders. Change-Id: If28409ad1c2ed3bd3a2922fc20d5e534c30fa249 Reviewed-on: https://go-review.googlesource.com/c/go/+/343169 Trust: Tobias Klauser Trust: Jay Conrod Run-TryBot: Tobias Klauser TryBot-Result: Go Bot Reviewed-by: Jay Conrod --- src/cmd/go/testdata/script/test_vet.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/cmd/go/testdata/script/test_vet.txt b/src/cmd/go/testdata/script/test_vet.txt index 239a477a18..2e0ae1956a 100644 --- a/src/cmd/go/testdata/script/test_vet.txt +++ b/src/cmd/go/testdata/script/test_vet.txt @@ -51,10 +51,7 @@ func Test(t *testing.T) { -- p1.go -- package p -import ( - "fmt" - "net/http" -) +import "fmt" func F() { fmt.Printf("%d") // oops @@ -62,6 +59,8 @@ func F() { -- vetall/p.go -- package p +import "net/http" + func F() { resp, err := http.Head("example.com") defer resp.Body.Close() -- 2.50.0