From 3c096b51f97e03e4cc19446d4dc937c8510d71c0 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 28 Feb 2020 13:19:10 +0100 Subject: Try to fix intermittent FPM failures Terminate only after expecting the log lines to avoid race condition. --- sapi/fpm/tests/log-bwd-msg-with-nl.phpt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sapi/fpm/tests/log-bwd-msg-with-nl.phpt b/sapi/fpm/tests/log-bwd-msg-with-nl.phpt index 67a793f8a0..0fdaf10549 100644 --- a/sapi/fpm/tests/log-bwd-msg-with-nl.phpt +++ b/sapi/fpm/tests/log-bwd-msg-with-nl.phpt @@ -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(); ?> -- cgit v1.2.1