Mercurial > hg > nginx-tests
comparison memcached_keepalive.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 | 6cbcfb4ef7ee |
children | 1a73389a19c4 |
comparison
equal
deleted
inserted
replaced
490:65d2d372ee31 | 491:d5bf5942a8b2 |
---|---|
122 $memd1->set('/big', 'X' x 1000000); | 122 $memd1->set('/big', 'X' x 1000000); |
123 | 123 |
124 my $total = $memd1->stats()->{total}->{total_connections}; | 124 my $total = $memd1->stats()->{total}->{total_connections}; |
125 | 125 |
126 like(http_get('/'), qr/SEE-THIS/, 'keepalive memcached request'); | 126 like(http_get('/'), qr/SEE-THIS/, 'keepalive memcached request'); |
127 like(http_get('/notfound'), qr/404/, 'keepalive memcached not found'); | 127 like(http_get('/notfound'), qr/ 404 /, 'keepalive memcached not found'); |
128 like(http_get('/next'), qr/404/, | 128 like(http_get('/next'), qr/ 404 /, |
129 'keepalive not found with memcached_next_upstream'); | 129 'keepalive not found with memcached_next_upstream'); |
130 like(http_get('/'), qr/SEE-THIS/, 'keepalive memcached request again'); | 130 like(http_get('/'), qr/SEE-THIS/, 'keepalive memcached request again'); |
131 like(http_get('/'), qr/SEE-THIS/, 'keepalive memcached request again'); | 131 like(http_get('/'), qr/SEE-THIS/, 'keepalive memcached request again'); |
132 like(http_get('/'), qr/SEE-THIS/, 'keepalive memcached request again'); | 132 like(http_get('/'), qr/SEE-THIS/, 'keepalive memcached request again'); |
133 | 133 |