Mercurial > hg > nginx-tests
diff h2.t @ 1206:c99c1f43cb15
Tests: reload() introduced in Test::Nginx.
This method replaces ad-hoc solutions to reload nginx, and adds win32 support.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 09 Aug 2017 15:57:38 +0300 |
parents | 368ab1d8ed8b |
children | 766bcbb632ee |
line wrap: on
line diff
--- a/h2.t +++ b/h2.t @@ -1117,9 +1117,6 @@ undef $grace4; # GOAWAY without awaiting active streams, further streams ignored -SKIP: { -skip 'win32', 3 if $^O eq 'MSWin32'; - TODO: { local $TODO = 'not yet' unless $t->has_version('1.11.6'); @@ -1127,7 +1124,7 @@ local $TODO = 'not yet' unless $t->has_v $sid = $s->new_stream({ path => '/t1.html' }); $s->read(all => [{ sid => $sid, length => 2**16 - 1 }]); -kill 'HUP', $t->read_file('nginx.pid'); +$t->reload(); $frames = $s->read(all => [{ type => 'GOAWAY' }]); @@ -1150,8 +1147,6 @@ is($frame, undef, 'GOAWAY with active st $sum = eval join '+', map { $_->{length} } @data; is($sum, 81, 'GOAWAY with active stream - active stream DATA after GOAWAY'); -} - # GOAWAY - force closing a connection by server with idle or active streams $s = Test::Nginx::HTTP2->new();