Mercurial > hg > nginx-tests
changeset 1281:5bbade306a0d
Tests: unbreak h2_server_push.t on win32.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 09 Feb 2018 10:21:27 +0300 |
parents | 8a88c0d6f80a |
children | fd281e3a3df5 |
files | h2_server_push.t |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/h2_server_push.t Fri Feb 09 10:11:14 2018 +0300 +++ b/h2_server_push.t Fri Feb 09 10:21:27 2018 +0300 @@ -128,7 +128,7 @@ $t->write_file('t2', 'SEE-THIS'); $t->write_file('explf', join('', map { sprintf "X%06dXXX", $_ } (1 .. 6553))); -$t->try_run('no http2_push')->plan(38); +$t->try_run('no http2_push')->plan(37); ############################################################################### @@ -236,11 +236,8 @@ ok($frame, 'push setting enabled'); $s->h2_settings(0, 0x2 => 42); -$sid = $s->new_stream({ path => '/expl' }); -$frames = $s->read(all => [{ type => 'PUSH_PROMISE' }]); +$frames = $s->read(all => [{ type => 'GOAWAY' }]); -($frame) = grep { $_->{type} =~ "PUSH_PROMISE" } @$frames; -ok(!$frame, 'push setting invalid - no promises'); ($frame) = grep { $_->{type} =~ "GOAWAY" } @$frames; is($frame->{'code'}, 1, 'push setting invalid - GOAWAY protocol error'); cmp_ok($frame->{'last_sid'}, '<', 5, 'push setting invalid - last sid');