mirror of
https://github.com/danog/parallel.git
synced 2024-11-30 04:39:01 +01:00
Fix test conflicts with forks not ready yet
This commit is contained in:
parent
d3038f9597
commit
82c977bb9a
@ -95,7 +95,10 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase
|
||||
$status = (int)$function();
|
||||
exit(0);
|
||||
default:
|
||||
pcntl_wait($status);
|
||||
usleep(1e3);
|
||||
if (pcntl_wait($status) === -1) {
|
||||
$this->fail('Failed to fork process.');
|
||||
}
|
||||
return $status;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user