mirror of
https://gitee.com/johng/gf
synced 2026-07-07 14:25:17 +08:00
improve unit testing case for package gtimer
This commit is contained in:
@ -50,7 +50,7 @@ func TestTimer_Proceed(t *testing.T) {
|
||||
})
|
||||
for i := 0; i < 2000000; i++ {
|
||||
timer.wheels[0].proceed()
|
||||
time.Sleep(time.Microsecond)
|
||||
time.Sleep(10 * time.Microsecond)
|
||||
}
|
||||
time.Sleep(time.Second)
|
||||
t.Assert(slice, []int{1, 2, 3, 4, 5, 6, 7, 8, 9})
|
||||
|
||||
Reference in New Issue
Block a user