Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
Accommodate case folding in older mgr test
Browse files Browse the repository at this point in the history
  • Loading branch information
sdboyer committed Sep 5, 2017
1 parent 8a64a61 commit eaeb2a1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/gps/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,10 @@ func TestGetSources(t *testing.T) {
})

// nine entries (of which three are dupes): for each vcs, raw import path,
// the https url, and the http url
if len(sm.srcCoord.nameToURL) != 9 {
t.Errorf("Should have nine discrete entries in the nameToURL map, got %v", len(sm.srcCoord.nameToURL))
// the https url, and the http url. also three more from case folding of
// github.com/Masterminds/VCSTestRepo -> github.com/masterminds/vcstestrepo
if len(sm.srcCoord.nameToURL) != 12 {
t.Errorf("Should have twelve discrete entries in the nameToURL map, got %v", len(sm.srcCoord.nameToURL))
}
clean()
}
Expand Down

0 comments on commit eaeb2a1

Please sign in to comment.