mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
make scheduling queue start before the scheduler starts and stops after the scheduler stops
This commit is contained in:
@@ -319,7 +319,7 @@ func TestDefaultErrorFunc(t *testing.T) {
|
||||
defer close(stopCh)
|
||||
|
||||
timestamp := time.Now()
|
||||
queue := internalqueue.NewPriorityQueue(nil, nil, internalqueue.WithClock(clock.NewFakeClock(timestamp)))
|
||||
queue := internalqueue.NewPriorityQueue(nil, internalqueue.WithClock(clock.NewFakeClock(timestamp)))
|
||||
schedulerCache := internalcache.New(30*time.Second, stopCh)
|
||||
errFunc := MakeDefaultErrorFunc(client, queue, schedulerCache)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user