Merge pull request #30930 from benoittgt/30927-ci-fix

Fix flaky TestFindChartURL due to non-deterministic map iteration
pull/30917/head
Robert Sirchia 3 months ago committed by GitHub
commit de62ed1b2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -115,7 +115,7 @@ func TestFindChartURL(t *testing.T) {
t.Errorf("Unexpected passcredentialsall %t", passcredentialsall) t.Errorf("Unexpected passcredentialsall %t", passcredentialsall)
} }
name = "baz" name = "foo"
version = "1.2.3" version = "1.2.3"
repoURL = "http://example.com/helm" repoURL = "http://example.com/helm"
@ -124,7 +124,7 @@ func TestFindChartURL(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
if churl != "http://example.com/path/to/baz-1.2.3.tgz" { if churl != "http://example.com/helm/charts/foo-1.2.3.tgz" {
t.Errorf("Unexpected URL %q", churl) t.Errorf("Unexpected URL %q", churl)
} }
if username != "" { if username != "" {

Loading…
Cancel
Save