mirror of
https://github.com/golang/go
synced 2024-11-26 16:57:14 -07:00
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 <tobias.klauser@gmail.com> Trust: Jay Conrod <jayconrod@google.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com>
This commit is contained in:
parent
8b471db71b
commit
0c83e01e0c
7
src/cmd/go/testdata/script/test_vet.txt
vendored
7
src/cmd/go/testdata/script/test_vet.txt
vendored
@ -51,10 +51,7 @@ func Test(t *testing.T) {
|
|||||||
-- p1.go --
|
-- p1.go --
|
||||||
package p
|
package p
|
||||||
|
|
||||||
import (
|
import "fmt"
|
||||||
"fmt"
|
|
||||||
"net/http"
|
|
||||||
)
|
|
||||||
|
|
||||||
func F() {
|
func F() {
|
||||||
fmt.Printf("%d") // oops
|
fmt.Printf("%d") // oops
|
||||||
@ -62,6 +59,8 @@ func F() {
|
|||||||
-- vetall/p.go --
|
-- vetall/p.go --
|
||||||
package p
|
package p
|
||||||
|
|
||||||
|
import "net/http"
|
||||||
|
|
||||||
func F() {
|
func F() {
|
||||||
resp, err := http.Head("example.com")
|
resp, err := http.Head("example.com")
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
Loading…
Reference in New Issue
Block a user