]> granicus.if.org Git - php/commitdiff
Add ping to the fpm test for bug #77934
authorJakub Zelenka <bukka@php.net>
Mon, 13 May 2019 17:47:43 +0000 (18:47 +0100)
committerJakub Zelenka <bukka@php.net>
Mon, 13 May 2019 17:50:24 +0000 (18:50 +0100)
sapi/fpm/tests/bug77934-reload-process-control.phpt

index d223403f99eba8b141936b8591205aa3b73fd4dd..e7da04421bd9f7c6cb882245a2636cde1f6425e1 100644 (file)
@@ -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
@@ -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();