mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Merge pull request #82733 from yutedz/webhook-invocation-len
Check the length of recorder.invocations
This commit is contained in:
commit
e2e3de233d
@ -327,10 +327,12 @@ func testWebhookTimeout(t *testing.T, watchCache bool) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(recorder.invocations) > len(tt.expectInvocations) {
|
||||||
for _, invocation := range recorder.invocations[len(tt.expectInvocations):] {
|
for _, invocation := range recorder.invocations[len(tt.expectInvocations):] {
|
||||||
t.Errorf("unexpected invocation of %s", invocation.path)
|
t.Errorf("unexpected invocation of %s", invocation.path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user