mirror of https://github.com/go-co-op/gocron.git
give test more time after start
This commit is contained in:
parent
5425c7e313
commit
3b7e8a5ea8
|
|
@ -599,10 +599,12 @@ func TestScheduler_Start(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
|
||||
s.Start()
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
s.Start()
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
s.Start()
|
||||
|
||||
time.Sleep(1000 * time.Millisecond)
|
||||
time.Sleep(800 * time.Millisecond)
|
||||
|
||||
require.NoError(t, s.Shutdown())
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue