mirror of
https://github.com/kubernetes/client-go.git
synced 2025-07-19 17:39:56 +00:00
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:
parent
f3dc70cf10
commit
250fc3d6b4
@ -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,
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user