Mercurial > hg > nginx-tests
diff h2_error_page.t @ 1987:a095b971fbcc
Tests: removed TODO and try_run() checks for legacy versions.
For h2_http2.t, try_run() is preserved to ensure that deprecation
warnings for "listen ... http2" are suppressed, yet plan() is reported
before try_run(), so failure to start will be properly reported.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 04 Jun 2024 18:38:01 +0300 |
parents | 11463d379570 |
children |
line wrap: on
line diff
--- a/h2_error_page.t +++ b/h2_error_page.t @@ -85,19 +85,13 @@ my $s2 = Test::Nginx::HTTP2->new(); $sid = $s2->new_stream({ method => 'foo' }); $frames = $s2->read(all => [{ type => 'RST_STREAM' }]); -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.23.4'); - ($frame) = grep { $_->{type} eq "RST_STREAM" } @$frames; is($frame->{sid}, $sid, 'error 400 return 444 - invalid header'); -} - # while keeping $s1 and $s2, stop nginx; this should result in # "open socket ... left in connection ..." alerts if any of these # sockets are still open $t->stop(); -$t->todo_alerts() unless $t->has_version('1.23.4'); ###############################################################################