changeset 1949:6e4a480ab370

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 23 Feb 2024 02:04:40 +0300
parents 78452573505c
children e0b55129fbbf
files h3_keepalive.t
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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' }]);