mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 18:54:06 +00:00
Fix the flaky TestJobApiBackoffReset test
This commit is contained in:
parent
4457f85eb3
commit
dbea279112
@ -4602,10 +4602,11 @@ func TestJobApiBackoffReset(t *testing.T) {
|
||||
if retries != 1 {
|
||||
t.Fatalf("%s: expected exactly 1 retry, got %d", job.Name, retries)
|
||||
}
|
||||
// await for the actual requeue after processing of the pending queue is done
|
||||
awaitForQueueLen(ctx, t, manager, 1)
|
||||
|
||||
// the queue is emptied on success
|
||||
fakePodControl.Err = nil
|
||||
manager.clock.Sleep(fastJobApiBackoff)
|
||||
manager.processNextWorkItem(context.TODO())
|
||||
verifyEmptyQueue(ctx, t, manager)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user