Mercurial > hg > nginx-tests
changeset 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 | eb111c5f7556 |
children | 1edb092149e2 |
files | limit_conn_complex.t |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/limit_conn_complex.t Tue Jul 05 20:33:54 2016 +0300 +++ b/limit_conn_complex.t Wed Jul 06 17:52:54 2016 +0300 @@ -68,6 +68,7 @@ EOF +$t->write_file('req', ''); $t->run(); ############################################################################### @@ -83,8 +84,7 @@ $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