# HG changeset patch # User Sergey Kandaurov # Date 1692623457 -14400 # Node ID b68471aee5ad138c28fdd8ddfd513b00225acb50 # Parent afe4af958e5389feded87f07b94c75b22d3e9ff0 Tests: improved test for a stream initiating QUIC path migration. Previously, the test mostly passed due to a push timer scheduled for an unrelated delayed ACK, and the new path had enough data received to send response back when the push timer fired. Otherwise, the test could fail due to unvalidated address. Now it is fixed to perform path validation. diff --git a/quic_migration.t b/quic_migration.t --- a/quic_migration.t +++ b/quic_migration.t @@ -129,7 +129,13 @@ is($frame->{headers}{'x-ip'}, '127.0.0.2 $s->{scid} = "connection_id_1"; $s->{dcid} = $frame->{cid}; -$frames = $s->read(all => [{ sid => $s->new_stream(), fin => 1 }]); +my $sid = $s->new_stream(); + +$frames = $s->read(all => [{ type => 'PATH_CHALLENGE' }]); +($frame) = grep { $_->{type} eq "PATH_CHALLENGE" } @$frames; +$s->path_response($frame->{data}); + +$frames = $s->read(all => [{ sid => $sid, fin => 1 }]); ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; is($frame->{headers}{'x-ip'}, '127.0.0.1', 'remote addr on migration');