improve unit testing case for package gtimer

This commit is contained in:
jflyfox
2021-01-19 12:35:10 +08:00
parent bf6d6a29c0
commit 6d05512c2f

View File

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