changeset 1518:fca71a8ebf6d

Tests: adjusted worker_shutdown_timeout_h2.t shutdown delay more. A signal is made sure to be sent after nginx processed HEADERS, while not unnecessarily delaying it.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 10 Oct 2019 14:49:26 +0300
parents ec8d3f623358
children 787d904bdfe0
files worker_shutdown_timeout_h2.t
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/worker_shutdown_timeout_h2.t
+++ b/worker_shutdown_timeout_h2.t
@@ -58,7 +58,9 @@ EOF
 my $s = Test::Nginx::HTTP2->new();
 ok($s->new_stream(), 'new stream');
 
-select undef, undef, undef, 0.2;
+$s->h2_ping('SEE-THIS');
+$s->read(all => [{ type => 'PING' }]);
+
 $t->stop();
 
 TODO: {