imports: adjust tests to check vendored packages again (fix build)

Change-Id: I616dccc07c255bb7ca1146ad0d37d05999eeb772
Reviewed-on: https://go-review.googlesource.com/21142
Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
Robert Griesemer 2016-03-25 10:03:58 -07:00
parent 47218d24f2
commit 35f54f0ea0
1 changed files with 2 additions and 6 deletions

View File

@ -908,9 +908,7 @@ func TestFindImportVendor(t *testing.T) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
// TODO: adjust once we use vendoring again want := "golang.org/x/net/http2/hpack"
// want := "golang.org/x/net/http2/hpack"
want := "internal/golang.org/x/net/http2/hpack"
if got != want || rename { if got != want || rename {
t.Errorf(`findImportGoPath("hpack", HuffmanDecode ...)=%q, %t, want %q, false`, got, rename, want) t.Errorf(`findImportGoPath("hpack", HuffmanDecode ...)=%q, %t, want %q, false`, got, rename, want)
} }
@ -944,9 +942,7 @@ func TestProcessVendor(t *testing.T) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
// TODO: adjust once we use vendoring again want := "golang.org/x/net/http2/hpack"
// want := "golang.org/x/net/http2/hpack"
want := "internal/golang.org/x/net/http2/hpack"
if !bytes.Contains(out, []byte(want)) { if !bytes.Contains(out, []byte(want)) {
t.Fatalf("Process(%q) did not add expected hpack import:\n%s", target, out) t.Fatalf("Process(%q) did not add expected hpack import:\n%s", target, out)
} }