Skip to content

Commit 6775a1d

Browse files
committed
more time for async test
1 parent ccc40d7 commit 6775a1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Environment/AsyncWorkerTestCase.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ protected function createTaskmaster(): void
2323
public function testMultipleTasksRunAtTheSameTime(): void
2424
{
2525
$start = microtime(true);
26-
$this->addTasks(new SleepTask(100000), 3);
26+
$this->addTasks(new SleepTask(500000), 3);
2727
$this->taskmaster->wait();
2828
$end = microtime(true);
2929
$time = ($end - $start) * 1000;
30-
$this->assertLessThan(299, $time);
30+
$this->assertLessThan(1499, $time);
3131
}
3232

3333
public function testHandleWarning(): void

0 commit comments

Comments
 (0)