Mercurial > hg > nginx-tests
comparison 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 |
comparison
equal
deleted
inserted
replaced
1159:a0324ac9addc | 1160:4ed2226d47de |
---|---|
55 ############################################################################### | 55 ############################################################################### |
56 | 56 |
57 my $s = http('', start => 1); | 57 my $s = http('', start => 1); |
58 | 58 |
59 kill 'HUP', $t->read_file('nginx.pid'); | 59 kill 'HUP', $t->read_file('nginx.pid'); |
60 IO::Select->new($s)->can_read(2); | 60 |
61 if (IO::Select->new($s)->can_read(5)) { | |
62 Test::Nginx::log_core('||', "select: can_read"); | |
63 } | |
61 | 64 |
62 is(http_get('/', socket => $s) || '', '', 'worker_shutdown_timeout'); | 65 is(http_get('/', socket => $s) || '', '', 'worker_shutdown_timeout'); |
63 | 66 |
64 ############################################################################### | 67 ############################################################################### |