comparison memcached_keepalive_stale.t @ 275:6cbcfb4ef7ee

Tests: correct has() checks for upstream keepalive tests.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 21 Mar 2013 22:00:45 +0400
parents 0c9f15938545
children 1a73389a19c4
comparison
equal deleted inserted replaced
274:ccebd3168b5b 275:6cbcfb4ef7ee
22 select STDOUT; $| = 1; 22 select STDOUT; $| = 1;
23 23
24 eval { require Cache::Memcached; }; 24 eval { require Cache::Memcached; };
25 plan(skip_all => 'Cache::Memcached not installed') if $@; 25 plan(skip_all => 'Cache::Memcached not installed') if $@;
26 26
27 my $t = Test::Nginx->new()->has('rewrite')->has_daemon('memcached')->plan(2) 27 my $t = Test::Nginx->new()->has(qw/http memcached upstream_keepalive rewrite/)
28 ->has_daemon('memcached')->plan(2)
28 ->write_file_expand('nginx.conf', <<'EOF'); 29 ->write_file_expand('nginx.conf', <<'EOF');
29 30
30 %%TEST_GLOBALS%% 31 %%TEST_GLOBALS%%
31 32
32 daemon off; 33 daemon off;