mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #82129 from liggitt/webhook-timeout-flake
Fix out of bounds error in timeout tests
This commit is contained in:
commit
81f997b3c8
@ -312,7 +312,7 @@ func testWebhookTimeout(t *testing.T, watchCache bool) {
|
|||||||
|
|
||||||
if tt.expectInvocations != nil {
|
if tt.expectInvocations != nil {
|
||||||
for i, invocation := range tt.expectInvocations {
|
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)
|
t.Errorf("expected invocation of %s, got none", invocation.path)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user