mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
kubelet: fix flake in TestUpdateExistingNodeStatusTimeout
This commit is contained in:
parent
9c60fd5242
commit
dfb8870000
@ -639,8 +639,8 @@ func TestUpdateExistingNodeStatusTimeout(t *testing.T) {
|
|||||||
assert.Error(t, kubelet.updateNodeStatus())
|
assert.Error(t, kubelet.updateNodeStatus())
|
||||||
|
|
||||||
// should have attempted multiple times
|
// should have attempted multiple times
|
||||||
if actualAttempts := atomic.LoadInt64(&attempts); actualAttempts != nodeStatusUpdateRetry {
|
if actualAttempts := atomic.LoadInt64(&attempts); actualAttempts < nodeStatusUpdateRetry {
|
||||||
t.Errorf("Expected %d attempts, got %d", nodeStatusUpdateRetry, actualAttempts)
|
t.Errorf("Expected at least %d attempts, got %d", nodeStatusUpdateRetry, actualAttempts)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user