details: http://freenginx.org/hg/nginx-tests/rev/6e4a480ab370 branches: changeset: 1949:6e4a480ab370 user: Maxim Dounin <mdou...@mdounin.ru> date: Fri Feb 23 02:04:40 2024 +0300 description: 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. diffstat: h3_keepalive.t | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diffs (12 lines): 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' }]); -- nginx-devel mailing list nginx-devel@freenginx.org https://freenginx.org/mailman/listinfo/nginx-devel