make scheduling queue start before the scheduler starts and stops after the scheduler stops

This commit is contained in:
Abdullah Gharaibeh
2019-12-02 14:35:09 -05:00
parent aa67744438
commit f388534082
8 changed files with 54 additions and 52 deletions

View File

@@ -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)