Mercurial > hg > nginx-tests
comparison 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 | d5bf5942a8b2 |
children | e9064d691790 |
comparison
equal
deleted
inserted
replaced
586:ef2b435c1048 | 587:c0b4ae82fd9d |
---|---|
75 $t->waitforsocket('127.0.0.1:8081') | 75 $t->waitforsocket('127.0.0.1:8081') |
76 or die "Can't start memcached"; | 76 or die "Can't start memcached"; |
77 | 77 |
78 ############################################################################### | 78 ############################################################################### |
79 | 79 |
80 my $memd = Cache::Memcached->new(servers => [ '127.0.0.1:8081' ]); | 80 my $memd = Cache::Memcached->new(servers => [ '127.0.0.1:8081' ], |
81 connect_timeout => 1.0); | |
81 $memd->set('/', 'SEE-THIS') | 82 $memd->set('/', 'SEE-THIS') |
82 or die "can't put value into memcached: $!"; | 83 or die "can't put value into memcached: $!"; |
83 | 84 |
84 like(http_get('/'), qr/SEE-THIS/, 'memcached request'); | 85 like(http_get('/'), qr/SEE-THIS/, 'memcached request'); |
85 | 86 |