diff --git a/src/cmd/go/testdata/script/test_vet.txt b/src/cmd/go/testdata/script/test_vet.txt index 239a477a180..2e0ae1956a0 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()