We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81f41c9 commit 0bc7e33Copy full SHA for 0bc7e33
tests/AsyncTaskTest.php
@@ -247,7 +247,10 @@ public function testAsyncTaskNormalStatus()
247
// now we start running the task
248
$liveStatus = $task->start();
249
250
- // the task is to sleep for 2 seconds, and then exit.
+ // try to sleep a bit, to stabilize the test case
251
+ sleep(1);
252
+
253
+ // the task is to sleep for some time, and then exit.
254
// note: since checking the task statuses take some time, we cannot confirm the actual elapsed time of our tests,
255
// and so "task ended" case is not testable
256
$this->assertFalse($preStatus->isRunning(), "Stopped tasks should always report \"task stopped\".");
0 commit comments