diff --git a/test/e2e/framework/assertions.go b/test/e2e/framework/assertions.go index 8b4fa6fb6..8cfc07e27 100644 --- a/test/e2e/framework/assertions.go +++ b/test/e2e/framework/assertions.go @@ -57,7 +57,8 @@ func (f *Framework) AssertResourceNeverExists(name, namespace string, resource c } return func(t *testing.T) { - if err := wait.PollUntilContextTimeout(context.Background(), option.PollInterval, option.WaitTimeout, true, func(ctx context.Context) (done bool, err error) { + //nolint + if err := wait.Poll(option.PollInterval, option.WaitTimeout, func() (done bool, err error) { key := types.NamespacedName{ Name: name, Namespace: namespace,