Mercurial > hg > nginx-tests
diff worker_shutdown_timeout.t @ 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 | 06bb6af4324e |
children | feb91ae3fca3 |
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');