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:
parent
47218d24f2
commit
35f54f0ea0
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue