Permalink
Browse files

updated tests to reflect recent changes in nginx-1.2.7-upstream_trunc…

…ation.patch.
  • Loading branch information...
1 parent 78a7622 commit c18503835d7db78a26383b5f44f625957fd659c7 @agentzh agentzh committed Apr 9, 2013
Showing with 8 additions and 5 deletions.
  1. +8 −5 t/pipeline.t
View
@@ -3,9 +3,9 @@
use lib 'lib';
use Test::Nginx::Socket;
-#repeat_each(2);
+repeat_each(2);
-plan tests => repeat_each() * 2 * blocks();
+plan tests => repeat_each() * (2 * blocks() + 1);
$ENV{TEST_NGINX_REDIS_PORT} ||= 6379;
@@ -94,9 +94,12 @@ __DATA__
}
--- request
GET /pipelined2?n=3&cmds=flushall%0D%0Aget%20key%0D%0A
---- response_body eval
-"+OK\r\n\$-1\r\n"
---- timeout: 3
+--- ignore_response
+--- no_error_log
+[alert]
+[crit]
+--- error_log eval
+qr/upstream timed out .*? while reading upstream/

0 comments on commit c185038

Please sign in to comment.