]> granicus.if.org Git - php/commitdiff
Try to fix intermittent FPM failures
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 28 Feb 2020 12:19:10 +0000 (13:19 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 28 Feb 2020 12:19:10 +0000 (13:19 +0100)
Terminate only after expecting the log lines to avoid race
condition.

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

index 67a793f8a067c2b33c1579f15f75bb9714ea9155..0fdaf105493e6254e2e88fca8c8011a09aadba31 100644 (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();
 
 ?>