Changeset 1281:5bbade306a0d in nginx-tests


Ignore:
Timestamp:
02/09/18 07:21:27 (2 years ago)
Author:
Sergey Kandaurov <pluknet@…>
Branch:
default
Phase:
public
Message:

Tests: unbreak h2_server_push.t on win32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • h2_server_push.t

    r1280 r1281  
    129129$t->write_file('explf', join('', map { sprintf "X%06dXXX", $_ } (1 .. 6553)));
    130130
    131 $t->try_run('no http2_push')->plan(38);
     131$t->try_run('no http2_push')->plan(37);
    132132
    133133###############################################################################
     
    237237
    238238$s->h2_settings(0, 0x2 => 42);
    239 $sid = $s->new_stream({ path => '/expl' });
    240 $frames = $s->read(all => [{ type => 'PUSH_PROMISE' }]);
    241 
    242 ($frame) = grep { $_->{type} =~ "PUSH_PROMISE" } @$frames;
    243 ok(!$frame, 'push setting invalid - no promises');
     239$frames = $s->read(all => [{ type => 'GOAWAY' }]);
     240
    244241($frame) = grep { $_->{type} =~ "GOAWAY" } @$frames;
    245242is($frame->{'code'}, 1, 'push setting invalid - GOAWAY protocol error');
Note: See TracChangeset for help on using the changeset viewer.