fixup! feat: Add support for --wait-retries flag.

another test case for mixing release and defaults

Signed-off-by: Connor Hindley <connor.hindley@tanium.com>
This commit is contained in:
Connor Hindley 2025-02-11 14:44:59 -06:00
parent 69d2c7f276
commit 5eb93bdf72
No known key found for this signature in database
GPG Key ID: 3293949A7BFEEB6C
1 changed files with 8 additions and 0 deletions

View File

@ -178,6 +178,14 @@ func TestAppendWaitFlags(t *testing.T) {
helmSpec: HelmSpec{WaitRetries: 4},
expected: []string{"--wait", "--wait-retries", "4"},
},
{
name: "release retries default wait",
release: &ReleaseSpec{WaitRetries: &[]int{5}[0]},
syncOpts: nil,
helm: testutil.NewVersionHelmExec("3.15.0"),
helmSpec: HelmSpec{Wait: true},
expected: []string{"--wait", "--wait-retries", "5"},
},
}
for _, tt := range tests {