1
0
mirror of https://github.com/danog/process.git synced 2024-11-26 12:14:43 +01:00

Await process start in test

This commit is contained in:
Niklas Keller 2021-03-30 22:04:22 +02:00
parent a0abd4930a
commit b88c6aef75

View File

@ -221,7 +221,7 @@ class ProcessTest extends TestCase
{ {
Loop::run(function () { Loop::run(function () {
$process = new Process(self::CMD_PROCESS_SLOW); $process = new Process(self::CMD_PROCESS_SLOW);
$process->start(); yield $process->start();
yield new Delayed(100); // Give process a chance to start, otherwise a different error is thrown. yield new Delayed(100); // Give process a chance to start, otherwise a different error is thrown.