kubelet: fix flake in TestUpdateExistingNodeStatusTimeout

This commit is contained in:
Seth Jennings 2018-04-20 11:48:51 -05:00
parent 9c60fd5242
commit dfb8870000

View File

@ -639,8 +639,8 @@ func TestUpdateExistingNodeStatusTimeout(t *testing.T) {
assert.Error(t, kubelet.updateNodeStatus())
// should have attempted multiple times
if actualAttempts := atomic.LoadInt64(&attempts); actualAttempts != nodeStatusUpdateRetry {
t.Errorf("Expected %d attempts, got %d", nodeStatusUpdateRetry, actualAttempts)
if actualAttempts := atomic.LoadInt64(&attempts); actualAttempts < nodeStatusUpdateRetry {
t.Errorf("Expected at least %d attempts, got %d", nodeStatusUpdateRetry, actualAttempts)
}
}