Mercurial > hg > nginx-tests
comparison quic_retry.t @ 1919:161dc73812b3
Tests: keep QUIC TODOs for a while.
To pass tests on the latest development release.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 10 Jul 2023 18:30:08 +0400 |
parents | 15131dd931a0 |
children | 24482e311749 |
comparison
equal
deleted
inserted
replaced
1918:22f45bf99a9e | 1919:161dc73812b3 |
---|---|
106 ($frame) = grep { $_->{type} eq "CONNECTION_CLOSE" } @$frames; | 106 ($frame) = grep { $_->{type} eq "CONNECTION_CLOSE" } @$frames; |
107 is($frame->{error}, 11, 'retry token invalid'); | 107 is($frame->{error}, 11, 'retry token invalid'); |
108 | 108 |
109 # connection with retry token, corrupted | 109 # connection with retry token, corrupted |
110 | 110 |
111 TODO: { | |
112 local $TODO = 'not yet' unless $t->has_version('1.25.2'); | |
113 | |
111 substr($retry_token, 32) ^= "\xff"; | 114 substr($retry_token, 32) ^= "\xff"; |
112 $s = Test::Nginx::HTTP3->new(8980, token => $retry_token, probe => 1); | 115 $s = Test::Nginx::HTTP3->new(8980, token => $retry_token, probe => 1); |
113 $frames = $s->read(all => [{ type => 'CONNECTION_CLOSE' }]); | 116 $frames = $s->read(all => [{ type => 'CONNECTION_CLOSE' }]); |
114 | 117 |
115 ($frame) = grep { $_->{type} eq "CONNECTION_CLOSE" } @$frames; | 118 ($frame) = grep { $_->{type} eq "CONNECTION_CLOSE" } @$frames; |
116 is($frame->{error}, 11, 'retry token decrypt error'); | 119 is($frame->{error}, 11, 'retry token decrypt error'); |
117 | 120 |
121 } | |
122 | |
118 ############################################################################### | 123 ############################################################################### |