diff --git a/test/integration/apiserver/admissionwebhook/timeout_test.go b/test/integration/apiserver/admissionwebhook/timeout_test.go index e37cd2becf7..ad845f52c02 100644 --- a/test/integration/apiserver/admissionwebhook/timeout_test.go +++ b/test/integration/apiserver/admissionwebhook/timeout_test.go @@ -312,7 +312,7 @@ func testWebhookTimeout(t *testing.T, watchCache bool) { if tt.expectInvocations != nil { for i, invocation := range tt.expectInvocations { - if len(recorder.invocations) < i { + if len(recorder.invocations) <= i { t.Errorf("expected invocation of %s, got none", invocation.path) continue }