# HG changeset patch # User Maxim Dounin <mdou...@mdounin.ru> # Date 1741398260 -10800 # Sat Mar 08 04:44:20 2025 +0300 # Node ID a84cf984d25e61f759ebabe5f7fabb79d3653ac2 # Parent 570d0c2667b8bce8d76e9f58ddc2515b36d6b0de Tests: fixed LibreSSL TODOs in h3_ssl_early_data.t.
Previously, the last test wasn't properly excluded from the TODO scope and was reported as an unexpected success. diff --git a/h3_ssl_early_data.t b/h3_ssl_early_data.t --- a/h3_ssl_early_data.t +++ b/h3_ssl_early_data.t @@ -80,13 +80,13 @@ my $frames = $s->read(all => [{ sid => $ my ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; is($frame->{headers}->{'x-session'}, '.', 'new session'); -local $TODO = 'no TLSv1.3 sessions in LibreSSL' if $t->has_module('LibreSSL'); - my $psk_list = $s->{psk_list}; $s = Test::Nginx::HTTP3->new(8980, psk_list => $psk_list, early_data => {}); TODO: { +local $TODO = 'no TLSv1.3 sessions in LibreSSL' + if $t->has_module('LibreSSL'); local $TODO = 'no 0-RTT in OpenSSL compat layer' unless $t->has_module('OpenSSL [.0-9]+\+quic') or $t->has_module('BoringSSL') @@ -99,9 +99,16 @@ is($frame->{headers}->{'x-early'}, '1', } +TODO: { +local $TODO = 'no TLSv1.3 sessions in LibreSSL' + if $t->has_module('LibreSSL'); + $frames = $s->read(all => [{ sid => $s->new_stream(), fin => 1 }]); ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; is($frame->{headers}->{'x-session'}, 'r', 'reused session 1rtt'); + +} + is($frame->{headers}->{'x-early'}, undef, 'reused session not early'); ###############################################################################