Mercurial > hg > nginx-tests
diff memcached_keepalive.t @ 587:c0b4ae82fd9d
Tests: adjusted memcached test timeouts.
Raised Cache::Memcached connect_timeout from the default value.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 25 May 2015 14:21:18 +0300 |
parents | 1a73389a19c4 |
children | 6c0a5903d0ae |
line wrap: on
line diff
--- a/memcached_keepalive.t +++ b/memcached_keepalive.t @@ -120,8 +120,10 @@ if ($memhelp =~ /-t/) { ############################################################################### -my $memd1 = Cache::Memcached->new(servers => [ '127.0.0.1:8081' ]); -my $memd2 = Cache::Memcached->new(servers => [ '127.0.0.1:8082' ]); +my $memd1 = Cache::Memcached->new(servers => [ '127.0.0.1:8081' ], + connect_timeout => 1.0); +my $memd2 = Cache::Memcached->new(servers => [ '127.0.0.1:8082' ], + connect_timeout => 1.0); $memd1->set('/', 'SEE-THIS'); $memd2->set('/', 'SEE-THIS');