mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
Try to fix intermittent FPM failures
Terminate only after expecting the log lines to avoid race condition.
This commit is contained in:
parent
30ee3f48d4
commit
3c096b51f9
1 changed files with 2 additions and 1 deletions
|
@ -29,10 +29,11 @@ $tester = new FPM\Tester($cfg, $code);
|
||||||
$tester->start();
|
$tester->start();
|
||||||
$tester->expectLogStartNotices();
|
$tester->expectLogStartNotices();
|
||||||
$tester->request()->expectEmptyBody();
|
$tester->request()->expectEmptyBody();
|
||||||
$tester->terminate();
|
|
||||||
$tester->expectLogLine('msg 1');
|
$tester->expectLogLine('msg 1');
|
||||||
$tester->expectLogLine('msg 2');
|
$tester->expectLogLine('msg 2');
|
||||||
$tester->expectLogLine('msg 3');
|
$tester->expectLogLine('msg 3');
|
||||||
|
$tester->terminate();
|
||||||
|
$tester->expectLogTerminatingNotices();
|
||||||
$tester->close();
|
$tester->close();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue