1--TEST--
2FPM: bug80024 - Duplication of info about inherited socket after pool removing
3--SKIPIF--
4<?php include "skipif.inc"; ?>
5--FILE--
6<?php
7
8require_once "tester.inc";
9
10$cfg['main'] = <<<EOT
11[global]
12error_log = {{FILE:LOG}}
13pid = {{FILE:PID}}
14include = {{INCLUDE:CONF}}
15EOT;
16
17$cfg['poolTemplate'] = <<<EOT
18[pool_%index%]
19listen = {{ADDR:UDS[pool_%index%]}}
20pm = ondemand
21pm.start_servers = 2
22pm.min_spare_servers = 1
23pm.max_spare_servers = 3
24pm.max_children = 5
25EOT;
26
27$cfg['count'] = 129;
28
29$tester = new FPM\Tester($cfg);
30$tester->start();
31$tester->expectLogStartNotices();
32$cfg['count'] = 128;
33$tester->reload($cfg);
34$tester->expectLogReloadingNotices(129);
35$tester->reload();
36$tester->expectLogReloadingNotices(128);
37$tester->terminate();
38$tester->expectLogTerminatingNotices();
39$tester->close();
40
41?>
42Done
43--EXPECT--
44Done
45--CLEAN--
46<?php
47require_once "tester.inc";
48FPM\Tester::clean();
49?>
50