diff memcached_keepalive_stale.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_stale.t
+++ b/memcached_keepalive_stale.t
@@ -87,7 +87,8 @@ if ($memhelp =~ /-t/) {
 
 ###############################################################################
 
-my $memd1 = Cache::Memcached->new(servers => [ '127.0.0.1:8081' ]);
+my $memd1 = Cache::Memcached->new(servers => [ '127.0.0.1:8081' ],
+	connect_timeout => 1.0);
 
 # It's possible that stale events occur, i.e. read event handler called
 # for just saved upstream connection without any data available for