Commit dfb88700 authored by Seth Jennings's avatar Seth Jennings

kubelet: fix flake in TestUpdateExistingNodeStatusTimeout

parent 9c60fd52
......@@ -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)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment