From 35f54f0ea088a9ee17b12172bae73a86d48aefdd Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Fri, 25 Mar 2016 10:03:58 -0700 Subject: [PATCH] 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 --- imports/fix_test.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/imports/fix_test.go b/imports/fix_test.go index 20c5b34a..49fc8ded 100644 --- a/imports/fix_test.go +++ b/imports/fix_test.go @@ -908,9 +908,7 @@ func TestFindImportVendor(t *testing.T) { if err != nil { t.Fatal(err) } - // TODO: adjust once we use vendoring again - // want := "golang.org/x/net/http2/hpack" - want := "internal/golang.org/x/net/http2/hpack" + want := "golang.org/x/net/http2/hpack" if got != want || rename { 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 { t.Fatal(err) } - // TODO: adjust once we use vendoring again - // want := "golang.org/x/net/http2/hpack" - want := "internal/golang.org/x/net/http2/hpack" + want := "golang.org/x/net/http2/hpack" if !bytes.Contains(out, []byte(want)) { t.Fatalf("Process(%q) did not add expected hpack import:\n%s", target, out) }