# HG changeset patch # User Maxim Dounin # Date 1708643080 -10800 # Node ID 6e4a480ab3705bdeeec17ab5af23813b3e8e75d4 # Parent 78452573505ca0ddddad63f31bcbf6d2c90b5d7c Tests: fixed h3_keepalive.t spurious failures. Previously, reload was initiated immediately after starting a stream, and appropriate packets might end up being received by the new worker process, breaking the test. Fix is to wait a while before initiating reload. diff --git a/h3_keepalive.t b/h3_keepalive.t --- a/h3_keepalive.t +++ b/h3_keepalive.t @@ -171,6 +171,8 @@ is($frame->{last_sid}, 8, 'keepalive tim $s = Test::Nginx::HTTP3->new(); $sid = $s->new_stream(); +select undef, undef, undef, 0.1; + $t->reload(); $frames = $s->read(all => [{ type => 'GOAWAY' }]);