diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-28 13:19:10 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-28 13:19:10 +0100 |
commit | 3c096b51f97e03e4cc19446d4dc937c8510d71c0 (patch) | |
tree | b603d3154d21675e6467f65671d8c0f2f4f64f60 | |
parent | 30ee3f48d4046c48314ad4b6953dbaf54337fe6c (diff) | |
download | php-git-3c096b51f97e03e4cc19446d4dc937c8510d71c0.tar.gz |
Try to fix intermittent FPM failures
Terminate only after expecting the log lines to avoid race
condition.
-rw-r--r-- | sapi/fpm/tests/log-bwd-msg-with-nl.phpt | 3 |
1 files changed, 2 insertions, 1 deletions
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(); ?> |