Correct invalid assumption about test repository

pull/486/head
jackgr 9 years ago
parent fedeac77a0
commit 94fbdda7e4

@ -65,15 +65,17 @@ func TestListCharts(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
if len(charts) != 1 { if len(charts) < 1 {
t.Fatalf("expected one chart in list, got %d", len(charts)) t.Fatalf("expected at least one chart in test repository %s", TestRepoURL)
} }
haveName := charts[0] for _, ch := range charts {
wantName := TestArchiveName if ch == TestArchiveName {
if haveName != wantName { return
t.Fatalf("expected chart named %s, got %s", wantName, haveName) }
} }
t.Fatalf("expected chart named %s in test repository %s", TestArchiveName, TestRepoURL)
} }
func TestListChartsWithShouldFindRegex(t *testing.T) { func TestListChartsWithShouldFindRegex(t *testing.T) {

Loading…
Cancel
Save