Commit 94fbdda7 authored by jackgr's avatar jackgr

Correct invalid assumption about test repository

parent fedeac77
...@@ -65,15 +65,17 @@ func TestListCharts(t *testing.T) { ...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment