mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
test: make ValidateCount throw an error instead of a log
We can either fix it here or at every callsite. Every callsite is currently using this method incorrectly. Signed-off-by: Mike Danese <mikedanese@google.com>
This commit is contained in:
@@ -79,7 +79,7 @@ func (f *FakeHandler) ValidateRequestCount(t TestInterface, count int) bool {
|
||||
defer f.lock.Unlock()
|
||||
if f.requestCount != count {
|
||||
ok = false
|
||||
t.Logf("Expected %d call, but got %d. Only the last call is recorded and checked.", count, f.requestCount)
|
||||
t.Errorf("Expected %d call, but got %d. Only the last call is recorded and checked.", count, f.requestCount)
|
||||
}
|
||||
f.hasBeenChecked = true
|
||||
return ok
|
||||
|
||||
Reference in New Issue
Block a user