comparison 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
comparison
equal deleted inserted replaced
586:ef2b435c1048 587:c0b4ae82fd9d
118 $t->waitforsocket('127.0.0.1:8082') 118 $t->waitforsocket('127.0.0.1:8082')
119 or die "Unable to start second memcached"; 119 or die "Unable to start second memcached";
120 120
121 ############################################################################### 121 ###############################################################################
122 122
123 my $memd1 = Cache::Memcached->new(servers => [ '127.0.0.1:8081' ]); 123 my $memd1 = Cache::Memcached->new(servers => [ '127.0.0.1:8081' ],
124 my $memd2 = Cache::Memcached->new(servers => [ '127.0.0.1:8082' ]); 124 connect_timeout => 1.0);
125 my $memd2 = Cache::Memcached->new(servers => [ '127.0.0.1:8082' ],
126 connect_timeout => 1.0);
125 127
126 $memd1->set('/', 'SEE-THIS'); 128 $memd1->set('/', 'SEE-THIS');
127 $memd2->set('/', 'SEE-THIS'); 129 $memd2->set('/', 'SEE-THIS');
128 $memd1->set('/big', 'X' x 1000000); 130 $memd1->set('/big', 'X' x 1000000);
129 131