Skip to content

Commit 89cc3b0

Browse files
author
Hyper
committed
Fix unit test
1 parent f8061aa commit 89cc3b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

timewheel_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func (ts *TimeWheelTestSuite) TestRunTask() {
6262
ts.tw.AddTask(time.Second*2, "2s")
6363
ts.tw.AddTask(time.Millisecond*1500, "1.5s")
6464

65+
time.Sleep(time.Millisecond * 100)
6566
should.Equal(6, ts.tw.GetTaskSize())
6667

6768
ts.tw.RemoveTask("fake-key") // will be ignored because it is not in the task list

0 commit comments

Comments
 (0)