Try to fix intermittent FPM failures

Terminate only after expecting the log lines to avoid race
condition.
This commit is contained in:
Nikita Popov 2020-02-28 13:19:10 +01:00
parent 30ee3f48d4
commit 3c096b51f9

View file

@ -29,10 +29,11 @@ $tester = new FPM\Tester($cfg, $code);
$tester->start();
$tester->expectLogStartNotices();
$tester->request()->expectEmptyBody();
$tester->terminate();
$tester->expectLogLine('msg 1');
$tester->expectLogLine('msg 2');
$tester->expectLogLine('msg 3');
$tester->terminate();
$tester->expectLogTerminatingNotices();
$tester->close();
?>