Skip to content

Commit

Permalink
more time for async test
Browse files Browse the repository at this point in the history
  • Loading branch information
matthi4s committed Oct 23, 2023
1 parent ccc40d7 commit 6775a1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Environment/AsyncWorkerTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ protected function createTaskmaster(): void
public function testMultipleTasksRunAtTheSameTime(): void
{
$start = microtime(true);
$this->addTasks(new SleepTask(100000), 3);
$this->addTasks(new SleepTask(500000), 3);
$this->taskmaster->wait();
$end = microtime(true);
$time = ($end - $start) * 1000;
$this->assertLessThan(299, $time);
$this->assertLessThan(1499, $time);
}

public function testHandleWarning(): void
Expand Down

0 comments on commit 6775a1d

Please sign in to comment.