1
0
mirror of https://github.com/danog/parallel.git synced 2024-11-26 20:34:40 +01:00

Fix test conflicts with forks not ready yet

This commit is contained in:
Stephen Coakley 2015-09-26 01:30:44 -05:00
parent d3038f9597
commit 82c977bb9a

View File

@ -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;
}
}