Mercurial > hg > nginx-tests
comparison h2_error_page.t @ 1936:716d7500317d
Tests: keep HTTP/2 test for "return 444" in error_page as TODO.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 25 Aug 2023 18:12:06 +0400 |
parents | 236d038dc04a |
children | 11463d379570 |
comparison
equal
deleted
inserted
replaced
1935:6bafe9419126 | 1936:716d7500317d |
---|---|
86 | 86 |
87 my $s2 = Test::Nginx::HTTP2->new(); | 87 my $s2 = Test::Nginx::HTTP2->new(); |
88 $sid = $s2->new_stream({ method => 'foo' }); | 88 $sid = $s2->new_stream({ method => 'foo' }); |
89 $frames = $s2->read(all => [{ type => 'RST_STREAM' }]); | 89 $frames = $s2->read(all => [{ type => 'RST_STREAM' }]); |
90 | 90 |
91 TODO: { | |
92 local $TODO = 'not yet' unless $t->has_version('1.23.4'); | |
93 | |
91 ($frame) = grep { $_->{type} eq "RST_STREAM" } @$frames; | 94 ($frame) = grep { $_->{type} eq "RST_STREAM" } @$frames; |
92 is($frame->{sid}, $sid, 'error 400 return 444 - invalid header'); | 95 is($frame->{sid}, $sid, 'error 400 return 444 - invalid header'); |
96 | |
97 } | |
93 | 98 |
94 # while keeping $s1 and $s2, stop nginx; this should result in | 99 # while keeping $s1 and $s2, stop nginx; this should result in |
95 # "open socket ... left in connection ..." alerts if any of these | 100 # "open socket ... left in connection ..." alerts if any of these |
96 # sockets are still open | 101 # sockets are still open |
97 | 102 |
98 $t->stop(); | 103 $t->stop(); |
104 $t->todo_alerts() unless $t->has_version('1.23.4'); | |
99 | 105 |
100 ############################################################################### | 106 ############################################################################### |