1
0
mirror of https://github.com/danog/parallel.git synced 2024-11-30 04:39:01 +01:00

Allow more time for kill

Threads only check once every 250 ms.
This commit is contained in:
Aaron Piotrowski 2017-03-21 23:33:05 -05:00
parent 774a42376d
commit 9cb6359de3
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ abstract class AbstractContextTest extends TestCase {
$context->start();
$this->assertRunTimeLessThan([$context, 'kill'], 100);
$this->assertRunTimeLessThan([$context, 'kill'], 250);
$this->assertFalse($context->isRunning());
}

View File

@ -81,7 +81,7 @@ abstract class AbstractWorkerTest extends TestCase {
$worker = $this->createWorker();
$worker->start();
$this->assertRunTimeLessThan([$worker, 'kill'], 200);
$this->assertRunTimeLessThan([$worker, 'kill'], 250);
$this->assertFalse($worker->isRunning());
}
}