mirror of
https://github.com/danog/parallel.git
synced 2024-11-26 12:24:40 +01:00
Add test delay to allow process to crash
Sending to fast can succeed before process crashes.
This commit is contained in:
parent
fc7dafe7a5
commit
dfb7b0149b
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user