mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6bc9da3fe1 | |||
| 6f54462070 |
@ -19,7 +19,7 @@
|
|||||||
"require": {
|
"require": {
|
||||||
"php": "^8.1.0",
|
"php": "^8.1.0",
|
||||||
"brianium/paratest": "^7.2.7",
|
"brianium/paratest": "^7.2.7",
|
||||||
"nunomaduro/collision": "^7.8.1",
|
"nunomaduro/collision": "^7.9.0",
|
||||||
"nunomaduro/termwind": "^1.15.1",
|
"nunomaduro/termwind": "^1.15.1",
|
||||||
"pestphp/pest-plugin": "^2.1.1",
|
"pestphp/pest-plugin": "^2.1.1",
|
||||||
"pestphp/pest-plugin-arch": "^2.3.3",
|
"pestphp/pest-plugin-arch": "^2.3.3",
|
||||||
|
|||||||
@ -254,11 +254,11 @@ final class WrapperRunner implements RunnerInterface
|
|||||||
|
|
||||||
private function destroyWorker(int $token): void
|
private function destroyWorker(int $token): void
|
||||||
{
|
{
|
||||||
// Mutation Testing tells us that the following `unset()` already destroys
|
|
||||||
// the `WrapperWorker`, which destroys the Symfony's `Process`, which
|
|
||||||
// automatically calls `Process::stop` within `Process::__destruct()`.
|
|
||||||
// But we prefer to have an explicit stops.
|
|
||||||
$this->workers[$token]->stop();
|
$this->workers[$token]->stop();
|
||||||
|
// We need to wait for ApplicationForWrapperWorker::end to end
|
||||||
|
while ($this->workers[$token]->isRunning()) {
|
||||||
|
usleep(self::CYCLE_SLEEP);
|
||||||
|
}
|
||||||
|
|
||||||
unset($this->workers[$token]);
|
unset($this->workers[$token]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user