From b451b8613149e1f83e29a54435cec7554a90e6aa Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Thu, 29 Aug 2019 10:33:20 -0400 Subject: [PATCH] Fix out of bounds error in timeout tests --- test/integration/apiserver/admissionwebhook/timeout_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }