Merge pull request #82129 from liggitt/webhook-timeout-flake

Fix out of bounds error in timeout tests
This commit is contained in:
Kubernetes Prow Robot 2019-08-30 09:40:35 -07:00 committed by GitHub
commit 81f997b3c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}