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

Commit eaeb2a1

Browse files
committed
Accommodate case folding in older mgr test
1 parent 8a64a61 commit eaeb2a1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/gps/manager_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,10 @@ func TestGetSources(t *testing.T) {
407407
})
408408

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

0 commit comments

Comments
 (0)