mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
improve unit testing case for package gcron
This commit is contained in:
@ -41,7 +41,7 @@ func TestCron_Add_Close(t *testing.T) {
|
||||
t.Assert(cron.Size(), 3)
|
||||
time.Sleep(1200 * time.Millisecond)
|
||||
t.Assert(array.Len(), 2)
|
||||
time.Sleep(1200 * time.Millisecond)
|
||||
time.Sleep(1400 * time.Millisecond)
|
||||
t.Assert(array.Len(), 5)
|
||||
cron.Close()
|
||||
time.Sleep(1200 * time.Millisecond)
|
||||
|
||||
Reference in New Issue
Block a user