Skip to content

Commit

Permalink
Add ping to the fpm test for bug #77934
Browse files Browse the repository at this point in the history
  • Loading branch information
bukka committed May 13, 2019
1 parent b6b15fc commit ad63bd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sapi/fpm/tests/bug77934-reload-process-control.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ pid = {{FILE:PID}}
process_control_timeout=20
[unconfined]
listen = {{ADDR}}
ping.path = /ping
ping.response = pong
pm = dynamic
pm.max_children = 5
pm.start_servers = 1
Expand All @@ -24,11 +26,13 @@ EOT;
$tester = new FPM\Tester($cfg);
$tester->start();
$tester->expectLogStartNotices();
$tester->ping('{{ADDR}}');
$tester->signal('USR2');
$tester->expectLogNotice('Reloading in progress ...');
$tester->expectLogNotice('reloading: .*');
$tester->expectLogNotice('using inherited socket fd=\d+, "127.0.0.1:\d+"');
$tester->expectLogStartNotices();
$tester->ping('{{ADDR}}');
$tester->terminate();
$tester->expectLogTerminatingNotices();
$tester->close();
Expand Down

0 comments on commit ad63bd1

Please sign in to comment.