diff upstream_hash_memcached.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 dc97097100a5
children 0597ca82c26a
line wrap: on
line diff
--- a/upstream_hash_memcached.t
+++ b/upstream_hash_memcached.t
@@ -119,9 +119,12 @@ if ($memhelp =~ /-U/) {
 
 ###############################################################################
 
-my $memd1 = Cache::Memcached->new(servers => [ '127.0.0.1:8081' ]);
-my $memd2 = Cache::Memcached->new(servers => [ '127.0.0.1:8082' ]);
-my $memd3 = Cache::Memcached->new(servers => [ '127.0.0.1:8083' ]);
+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);
+my $memd3 = Cache::Memcached->new(servers => [ '127.0.0.1:8083' ],
+	connect_timeout => 1.0);
 
 for my $i (1 .. 20) {
 	$memd1->set($i, '8081') or die "can't put value into memcached: $!";