comparison memcached.t @ 491:d5bf5942a8b2

Tests: disambiguated parsing of the status code.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 07 Nov 2014 13:05:07 +0300
parents 6a0d934950bc
children c0b4ae82fd9d
comparison
equal deleted inserted replaced
490:65d2d372ee31 491:d5bf5942a8b2
81 $memd->set('/', 'SEE-THIS') 81 $memd->set('/', 'SEE-THIS')
82 or die "can't put value into memcached: $!"; 82 or die "can't put value into memcached: $!";
83 83
84 like(http_get('/'), qr/SEE-THIS/, 'memcached request'); 84 like(http_get('/'), qr/SEE-THIS/, 'memcached request');
85 85
86 like(http_get('/notfound'), qr/404/, 'memcached not found'); 86 like(http_get('/notfound'), qr/ 404 /, 'memcached not found');
87 87
88 like(http_get('/next'), qr/404/, 'not found with memcached_next_upstream'); 88 like(http_get('/next'), qr/ 404 /, 'not found with memcached_next_upstream');
89 89
90 unlike(http_head('/'), qr/SEE-THIS/, 'memcached no data in HEAD'); 90 unlike(http_head('/'), qr/SEE-THIS/, 'memcached no data in HEAD');
91 91
92 ############################################################################### 92 ###############################################################################