Fix out of bounds error in timeout tests

This commit is contained in:
Jordan Liggitt 2019-08-29 10:33:20 -04:00
parent acf5411774
commit b451b86131

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
}