Skip to content

Commit 3c096b5

Browse files
committed
Try to fix intermittent FPM failures
Terminate only after expecting the log lines to avoid race condition.
1 parent 30ee3f4 commit 3c096b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sapi/fpm/tests/log-bwd-msg-with-nl.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ $tester = new FPM\Tester($cfg, $code);
2929
$tester->start();
3030
$tester->expectLogStartNotices();
3131
$tester->request()->expectEmptyBody();
32-
$tester->terminate();
3332
$tester->expectLogLine('msg 1');
3433
$tester->expectLogLine('msg 2');
3534
$tester->expectLogLine('msg 3');
35+
$tester->terminate();
36+
$tester->expectLogTerminatingNotices();
3637
$tester->close();
3738

3839
?>

0 commit comments

Comments
 (0)