Skip to content

Commit 815e7b9

Browse files
committed
Stabilize the test case
1 parent 0bc7e33 commit 815e7b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/AsyncTaskTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public function testAsyncTaskNormalStatus()
248248
$liveStatus = $task->start();
249249

250250
// try to sleep a bit, to stabilize the test case
251-
sleep(1);
251+
$this->sleep(0.1);
252252

253253
// the task is to sleep for some time, and then exit.
254254
// note: since checking the task statuses take some time, we cannot confirm the actual elapsed time of our tests,

0 commit comments

Comments
 (0)