From 2b3e48aa70ac6eaeb8a00bd8ed4c6da24244636b Mon Sep 17 00:00:00 2001 From: James Bardin Date: Tue, 26 Sep 2017 09:12:14 -0400 Subject: [PATCH] fix test comments --- config/module/get_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/module/get_test.go b/config/module/get_test.go index a33ad1b331..d7d6a0a7f0 100644 --- a/config/module/get_test.go +++ b/config/module/get_test.go @@ -23,6 +23,9 @@ type testMod struct { version string } +// All the locationes from the mockRegistry start with a file:// scheme. If +// the the location string here doesn't have a scheme, the mockRegistry will +// find the absolute path and return a complete URL. var testMods = map[string]testMod{ "registry/foo/bar": { location: "file:///download/registry/foo/bar/0.2.3//*?archive=tar.gz", @@ -305,7 +308,6 @@ func TestRegistryGitHubArchive(t *testing.T) { t.Fatal("should be loaded") } - // This should no longer error if err := tree.Load(storage, GetModeNone); err != nil { t.Fatalf("err: %s", err) } @@ -358,7 +360,6 @@ func TestAccRegistryLoad(t *testing.T) { t.Fatal("should be loaded") } - // This should no longer error if err := tree.Load(storage, GetModeNone); err != nil { t.Fatalf("err: %s", err) }