Merge pull request #30930 from benoittgt/30927-ci-fix
build-test / build (push) Has been cancelled Details
CodeQL / Analyze (go) (push) Has been cancelled Details
golangci-lint / golangci-lint (push) Has been cancelled Details
release / release (push) Has been cancelled Details
release / canary-release (push) Has been cancelled Details
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled Details
Close stale issues / stale (push) Has been cancelled Details
govulncheck / govulncheck (push) Has been cancelled Details

Fix flaky TestFindChartURL due to non-deterministic map iteration
This commit is contained in:
Robert Sirchia 2025-05-28 15:03:46 -04:00 committed by GitHub
commit de62ed1b2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ func TestFindChartURL(t *testing.T) {
t.Errorf("Unexpected passcredentialsall %t", passcredentialsall)
}
name = "baz"
name = "foo"
version = "1.2.3"
repoURL = "http://example.com/helm"
@ -124,7 +124,7 @@ func TestFindChartURL(t *testing.T) {
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)
}
if username != "" {