Mercurial > hg > nginx-tests
comparison h2.t @ 1987:a095b971fbcc default tip
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 |
comparison
equal
deleted
inserted
replaced
1986:11463d379570 | 1987:a095b971fbcc |
---|---|
1012 | 1012 |
1013 # some invalid cases below | 1013 # some invalid cases below |
1014 | 1014 |
1015 # invalid connection preface | 1015 # invalid connection preface |
1016 | 1016 |
1017 TODO: { | |
1018 local $TODO = 'not yet' unless $t->has_version('1.25.1'); | |
1019 | |
1020 like(http('x' x 16), qr/400 Bad Request/, 'invalid preface'); | 1017 like(http('x' x 16), qr/400 Bad Request/, 'invalid preface'); |
1021 like(http('PRI * HTTP/2.0' . CRLF . CRLF . 'x' x 8), qr/400 Bad Request/, | 1018 like(http('PRI * HTTP/2.0' . CRLF . CRLF . 'x' x 8), qr/400 Bad Request/, |
1022 'invalid preface 2'); | 1019 'invalid preface 2'); |
1023 | |
1024 } | |
1025 | 1020 |
1026 # GOAWAY on SYN_STREAM with even StreamID | 1021 # GOAWAY on SYN_STREAM with even StreamID |
1027 | 1022 |
1028 $s = Test::Nginx::HTTP2->new(); | 1023 $s = Test::Nginx::HTTP2->new(); |
1029 $s->new_stream({ path => '/' }, 2); | 1024 $s->new_stream({ path => '/' }, 2); |