diff 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
line wrap: on
line diff
--- a/memcached_keepalive.t	Wed Nov 05 19:31:51 2014 +0300
+++ b/memcached_keepalive.t	Fri Nov 07 13:05:07 2014 +0300
@@ -124,8 +124,8 @@
 my $total = $memd1->stats()->{total}->{total_connections};
 
 like(http_get('/'), qr/SEE-THIS/, 'keepalive memcached request');
-like(http_get('/notfound'), qr/404/, 'keepalive memcached not found');
-like(http_get('/next'), qr/404/,
+like(http_get('/notfound'), qr/ 404 /, 'keepalive memcached not found');
+like(http_get('/next'), qr/ 404 /,
 	'keepalive not found with memcached_next_upstream');
 like(http_get('/'), qr/SEE-THIS/, 'keepalive memcached request again');
 like(http_get('/'), qr/SEE-THIS/, 'keepalive memcached request again');