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

Add test delay to allow process to crash

Sending to fast can succeed before process crashes.
This commit is contained in:
Aaron Piotrowski 2020-02-10 17:40:34 -06:00
parent fc7dafe7a5
commit dfb7b0149b
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -49,6 +49,7 @@ abstract class AbstractContextTest extends AsyncTestCase
$context = $this->createContext(__DIR__ . "/Fixtures/throwing-process.php");
yield $context->start();
yield new Delayed(100);
yield $context->send(1);
}
@ -156,6 +157,7 @@ abstract class AbstractContextTest extends AsyncTestCase
$context = $this->createContext(__DIR__ . "/Fixtures/exiting-process.php");
yield $context->start();
yield new Delayed(500);
yield $context->send(1);
}
}