mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #45413 from gmarek/test_panic
Automatic merge from submit-queue (batch tested with PRs 43732, 45413) Extend timeouts in timed_workers_test Fix #45375 If it won't be enough I'll rewrite it to allow injectable timers.
This commit is contained in:
commit
5baa947c8c
@ -89,7 +89,7 @@ func TestCancel(t *testing.T) {
|
||||
return nil
|
||||
})
|
||||
now := time.Now()
|
||||
then := now.Add(100 * time.Millisecond)
|
||||
then := now.Add(time.Second)
|
||||
queue.AddWork(NewWorkArgs("1", "1"), now, then)
|
||||
queue.AddWork(NewWorkArgs("2", "2"), now, then)
|
||||
queue.AddWork(NewWorkArgs("3", "3"), now, then)
|
||||
@ -119,7 +119,7 @@ func TestCancelAndReadd(t *testing.T) {
|
||||
return nil
|
||||
})
|
||||
now := time.Now()
|
||||
then := now.Add(100 * time.Millisecond)
|
||||
then := now.Add(time.Second)
|
||||
queue.AddWork(NewWorkArgs("1", "1"), now, then)
|
||||
queue.AddWork(NewWorkArgs("2", "2"), now, then)
|
||||
queue.AddWork(NewWorkArgs("3", "3"), now, then)
|
||||
|
Loading…
Reference in New Issue
Block a user