fix test comments

This commit is contained in:
James Bardin 2017-09-26 09:12:14 -04:00
parent f6e89bb8c3
commit 2b3e48aa70
1 changed files with 3 additions and 2 deletions

View File

@ -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)
}