diff limit_conn_complex.t @ 968:ce687b25ea49

Tests: avoid spurious timeout in limit_conn_complex.t.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 06 Jul 2016 17:52:54 +0300
parents e9064d691790
children 882267679006
line wrap: on
line diff
--- a/limit_conn_complex.t
+++ b/limit_conn_complex.t
@@ -68,6 +68,7 @@ http {
 
 EOF
 
+$t->write_file('req', '');
 $t->run();
 
 ###############################################################################
@@ -83,8 +84,7 @@ http_get('/req');
 $s = http_get('/req', start => 1);
 ok(!IO::Select->new($s)->can_read(1), 'limit_req same key');
 
-$s = http_get('/req?r=2', start => 1);
-ok(IO::Select->new($s)->can_read(1), 'limit_req different key');
+like(http_get('/req?r=2'), qr/200 OK/, 'limit_req different key');
 
 # limit_conn tests