Mercurial > hg > nginx-tests
changeset 1160:4ed2226d47de
Tests: increased read timeout in worker_shutdown_timeout test.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 03 Apr 2017 20:57:47 +0300 |
parents | a0324ac9addc |
children | e1225e304e46 |
files | worker_shutdown_timeout.t |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/worker_shutdown_timeout.t Sun Apr 02 17:08:19 2017 +0300 +++ b/worker_shutdown_timeout.t Mon Apr 03 20:57:47 2017 +0300 @@ -57,7 +57,10 @@ my $s = http('', start => 1); kill 'HUP', $t->read_file('nginx.pid'); -IO::Select->new($s)->can_read(2); + +if (IO::Select->new($s)->can_read(5)) { + Test::Nginx::log_core('||', "select: can_read"); +} is(http_get('/', socket => $s) || '', '', 'worker_shutdown_timeout');