Mercurial > hg > nginx-tests
diff memcached_keepalive_stale.t @ 593:6c0a5903d0ae
Tests: cleanup now duplicating tests for no alerts.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 27 May 2015 17:09:22 +0300 |
parents | c0b4ae82fd9d |
children | e9064d691790 |
line wrap: on
line diff
--- a/memcached_keepalive_stale.t +++ b/memcached_keepalive_stale.t @@ -25,7 +25,7 @@ eval { require Cache::Memcached; }; plan(skip_all => 'Cache::Memcached not installed') if $@; my $t = Test::Nginx->new()->has(qw/http memcached upstream_keepalive rewrite/) - ->has_daemon('memcached')->plan(2) + ->has_daemon('memcached')->plan(1) ->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%% @@ -118,8 +118,4 @@ for (1 .. 100) { cmp_ok($memd1->stats()->{total}->{total_connections}, '<=', $total + 2, 'only one connection per worker used'); -$t->stop(); - -like(`grep -F '[alert]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no alerts'); - ###############################################################################