Replace usage of deprecated ErrWaitTimeout with recommended method across all Pkgs
Kubernetes-commit: 6c56d2fd1bc54a7bcda84c8a83428877d9b39e96
This commit is contained in:
parent
21b7b1d730
commit
34cfc51b85
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue