Mercurial > hg > nginx-tests
comparison limit_req_dry_run.t @ 1693:5ac6efbe5552
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 01 Jun 2021 16:40:18 +0300 |
parents | 65eb942993ad |
children |
comparison
equal
deleted
inserted
replaced
1692:f6795e2e6a4b | 1693:5ac6efbe5552 |
---|---|
68 | 68 |
69 EOF | 69 EOF |
70 | 70 |
71 $t->write_file('delay', 'SEE-THIS'); | 71 $t->write_file('delay', 'SEE-THIS'); |
72 $t->write_file('reject', 'SEE-THIS'); | 72 $t->write_file('reject', 'SEE-THIS'); |
73 $t->try_run('no limit_req_dry_run/limit_req_status')->plan(8); | 73 $t->run()->plan(8); |
74 | 74 |
75 ############################################################################### | 75 ############################################################################### |
76 | 76 |
77 like(http_get('/delay'), qr/ 200 .*PASSED/ms, 'dry run - passed'); | 77 like(http_get('/delay'), qr/ 200 .*PASSED/ms, 'dry run - passed'); |
78 like(http_get('/delay'), qr/ 200 .*DELAYED_DRY_RUN/ms, 'dry run - delayed'); | 78 like(http_get('/delay'), qr/ 200 .*DELAYED_DRY_RUN/ms, 'dry run - delayed'); |