Reduce test logs (#2550)

This commit is contained in:
Maycon Santos
2024-09-06 16:28:19 +02:00
committed by GitHub
parent fcf150f704
commit a7e46bf7b1
3 changed files with 33 additions and 27 deletions

View File

@ -63,6 +63,7 @@ func TestScheduler_Cancel(t *testing.T) {
scheduler.Schedule(context.Background(), scheduletime, jobID2, func() (nextRunIn time.Duration, reschedule bool) {
return scheduletime, true
})
defer scheduler.Cancel(context.Background(), []string{jobID2})
time.Sleep(sleepTime)
assert.Len(t, scheduler.jobs, 2)