mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
at most every may result in less than expected times if overloaded
Signed-off-by: Alan Zhu <zg.zhu@daocloud.io>
This commit is contained in:
parent
27c89b9aec
commit
67234271ef
@ -45,7 +45,7 @@ func TestAtMostEvery(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
if expected := int(duration/delay) + 1; count != expected {
|
||||
t.Fatalf("Function called %d times, should have been called exactly %d times", count, expected)
|
||||
if expected := int(duration/delay) + 1; count > expected {
|
||||
t.Fatalf("Function called %d times, should have been called less than or equal to %d times", count, expected)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user