comparison 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
comparison
equal deleted inserted replaced
967:eb111c5f7556 968:ce687b25ea49
66 } 66 }
67 } 67 }
68 68
69 EOF 69 EOF
70 70
71 $t->write_file('req', '');
71 $t->run(); 72 $t->run();
72 73
73 ############################################################################### 74 ###############################################################################
74 75
75 my $s; 76 my $s;
81 # limit_req tests 82 # limit_req tests
82 83
83 $s = http_get('/req', start => 1); 84 $s = http_get('/req', start => 1);
84 ok(!IO::Select->new($s)->can_read(1), 'limit_req same key'); 85 ok(!IO::Select->new($s)->can_read(1), 'limit_req same key');
85 86
86 $s = http_get('/req?r=2', start => 1); 87 like(http_get('/req?r=2'), qr/200 OK/, 'limit_req different key');
87 ok(IO::Select->new($s)->can_read(1), 'limit_req different key');
88 88
89 # limit_conn tests 89 # limit_conn tests
90 90
91 http_get('/req2'); 91 http_get('/req2');
92 92