Mercurial > hg > nginx-tests
comparison auth_delay.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 | 75fb32094392 |
children |
comparison
equal
deleted
inserted
replaced
1692:f6795e2e6a4b | 1693:5ac6efbe5552 |
---|---|
53 EOF | 53 EOF |
54 | 54 |
55 $t->write_file('index.html', ''); | 55 $t->write_file('index.html', ''); |
56 $t->write_file('htpasswd', 'user:' . '{PLAIN}good' . "\n"); | 56 $t->write_file('htpasswd', 'user:' . '{PLAIN}good' . "\n"); |
57 | 57 |
58 $t->try_run('no auth_delay')->plan(4); | 58 $t->run()->plan(4); |
59 | 59 |
60 ############################################################################### | 60 ############################################################################### |
61 | 61 |
62 my $t1 = time(); | 62 my $t1 = time(); |
63 like(http_get_auth('/', 'user', 'bad'), qr/401 Unauthorize/, 'not authorized'); | 63 like(http_get_auth('/', 'user', 'bad'), qr/401 Unauthorize/, 'not authorized'); |