Replace usage of deprecated ErrWaitTimeout with recommended method across all Pkgs

Kubernetes-commit: 6c56d2fd1bc54a7bcda84c8a83428877d9b39e96
This commit is contained in:
Mayuka Channankaiah 2025-08-01 14:18:06 +05:30 committed by Kubernetes Publisher
parent 21b7b1d730
commit 34cfc51b85
1 changed files with 1 additions and 1 deletions

View File

@ -872,7 +872,7 @@ func TestWithExponentialBackoffParametersNotSet(t *testing.T) {
err := WithExponentialBackoff(context.TODO(), wait.Backoff{}, webhookFunc, alwaysRetry)
errExpected := fmt.Errorf("webhook call failed: %s", wait.ErrWaitTimeout)
errExpected := fmt.Errorf("webhook call failed: %s", wait.ErrorInterrupted(nil).Error())
if errExpected.Error() != err.Error() {
t.Errorf("expected error: %v, but got: %v", errExpected, err)
}