comparison gunzip_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 847ea345becb
children dc2f8aac0553
comparison
equal deleted inserted replaced
586:ef2b435c1048 587:c0b4ae82fd9d
78 78
79 # Put compressed value into memcached. This requires compress_threshold to be 79 # Put compressed value into memcached. This requires compress_threshold to be
80 # set and compressed value to be at least 20% less than original one. 80 # set and compressed value to be at least 20% less than original one.
81 81
82 my $memd = Cache::Memcached->new(servers => [ '127.0.0.1:8081' ], 82 my $memd = Cache::Memcached->new(servers => [ '127.0.0.1:8081' ],
83 compress_threshold => 1); 83 compress_threshold => 1, connect_timeout => 1.0);
84 $memd->set('/', 'TEST' x 10) 84 $memd->set('/', 'TEST' x 10)
85 or die "can't put value into memcached: $!"; 85 or die "can't put value into memcached: $!";
86 86
87 ############################################################################### 87 ###############################################################################
88 88