wait: Update tests to reference the constant error

The structure of the error is changing, and we don't guarantee
reflect.DeepEqual(...) will remain true for ErrWaitTimeout currently.

Kubernetes-commit: 8d4004bbc77d012642db97e09238f4f65a926bca
This commit is contained in:
Clayton Coleman 2023-03-10 11:02:59 -06:00 committed by Kubernetes Publisher
parent f3dc70cf10
commit 250fc3d6b4

View File

@ -209,7 +209,7 @@ func TestUntilWithSync(t *testing.T) {
conditionFunc: func(e watch.Event) (bool, error) {
return true, nil
},
expectedErr: errors.New("timed out waiting for the condition"),
expectedErr: wait.ErrWaitTimeout,
expectedEvent: nil,
},
{