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) {
t.Fatal(err)
}
if len(charts) != 1 {
t.Fatalf("expected one chart in list, got %d", len(charts))
if len(charts) < 1 {
t.Fatalf("expected at least one chart in test repository %s", TestRepoURL)
}
haveName := charts[0]
wantName := TestArchiveName
if haveName != wantName {
t.Fatalf("expected chart named %s, got %s", wantName, haveName)
for _, ch := range charts {
if ch == TestArchiveName {
return
}
}
t.Fatalf("expected chart named %s in test repository %s", TestArchiveName, TestRepoURL)
}
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