From 250fc3d6b427c276e9d232ac778fb186d595b9ff Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Fri, 10 Mar 2023 11:02:59 -0600 Subject: [PATCH] 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 --- tools/watch/until_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/watch/until_test.go b/tools/watch/until_test.go index 2d64c423..a9367a81 100644 --- a/tools/watch/until_test.go +++ b/tools/watch/until_test.go @@ -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, }, {