diff --git a/t/proxyustats.t b/t/proxyustats.t index c1ca251..815823b 100644 --- a/t/proxyustats.t +++ b/t/proxyustats.t @@ -111,7 +111,9 @@ subtest 'failed to allocate 1025 ustats' => sub { my $last = 1025; write_config('return "' . $pfx . ' ' . $first . ' ' . $last . '"'); $p_srv->reload(); - unlike(<$watcher>, qr/ts=(\S+) gid=\d+ type=proxy_conf status=start/, "reload not started"); + my $s = <$watcher>; + warn "$s"; + unlike($s, qr/ts=(\S+) gid=\d+ type=proxy_conf status=start/, "reload not started"); unlike(<$watcher>, qr/ts=(\S+) gid=\d+ type=proxy_conf status=done/, "reload not completed"); restart_memcached(); @@ -123,11 +125,15 @@ subtest 'failed to allocate ustat at index 0' => sub { my $last = 0; write_config('return "' . $pfx . ' ' . $first . ' ' . $last . '"'); $p_srv->reload(); - unlike(<$watcher>, qr/ts=(\S+) gid=\d+ type=proxy_conf status=start/, "reload not started"); + my $s = <$watcher>; + warn "$s"; + unlike($s, qr/ts=(\S+) gid=\d+ type=proxy_conf status=start/, "reload not started"); unlike(<$watcher>, qr/ts=(\S+) gid=\d+ type=proxy_conf status=done/, "reload not completed"); restart_memcached(); }; +done_testing(); + exit; subtest 'succeeded to allocate ustat at 1024 only' => sub {