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:
parent
774a42376d
commit
9cb6359de3
@ -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());
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user