Mercurial > hg > nginx-tests
diff h2_priority.t @ 1693:5ac6efbe5552
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 01 Jun 2021 16:40:18 +0300 |
parents | 48306d8a2811 |
children | 236d038dc04a |
line wrap: on
line diff
--- a/h2_priority.t +++ b/h2_priority.t @@ -208,9 +208,6 @@ is($sids, "$sid $sid2", 'dependency - PR # stream error of type PROTOCOL_ERROR. # Instead, we respond with a connection error of type PROTOCOL_ERROR. -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.17.4'); - $s = Test::Nginx::HTTP2->new(); $sid = $s->new_stream(); $s->read(all => [{ sid => $sid, fin => 1 }]); @@ -222,8 +219,6 @@ my ($frame) = grep { $_->{type} eq "GOAW is($frame->{last_sid}, $sid, 'dependency - PRIORITY self - GOAWAY'); is($frame->{code}, 1, 'dependency - PRIORITY self - PROTOCOL_ERROR'); -} - # HEADERS PRIORITY flag, reprioritize prior PRIORITY frame records $s = Test::Nginx::HTTP2->new(); @@ -278,19 +273,14 @@ is($sids, "$sid $sid2", 'dependency - HE # HEADERS - self dependency -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.17.4'); - $s = Test::Nginx::HTTP2->new(); $sid = $s->new_stream({ dep => 1 }); $frames = $s->read(all => [{ type => 'GOAWAY' }]); -my ($frame) = grep { $_->{type} eq "GOAWAY" } @$frames; +($frame) = grep { $_->{type} eq "GOAWAY" } @$frames; is($frame->{last_sid}, 0, 'dependency - HEADERS self - GOAWAY'); is($frame->{code}, 1, 'dependency - HEADERS self - PROTOCOL_ERROR'); -} - # PRIORITY frame, weighted dependencies $s = Test::Nginx::HTTP2->new(); @@ -402,7 +392,7 @@ for (1 .. 40) { { sid => $sid3, fin => 1 }, ]); -my ($frame) = grep { $_->{type} eq "DATA" && $_->{sid} == $sid } @$frames; +($frame) = grep { $_->{type} eq "DATA" && $_->{sid} == $sid } @$frames; is($frame->{length}, 81, 'removed dependency - first stream'); ($frame) = grep { $_->{type} eq "DATA" && $_->{sid} == $sid3 } @$frames;