comparison h3_keepalive.t @ 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 8b74936ff2ac
children
comparison
equal deleted inserted replaced
1948:78452573505c 1949:6e4a480ab370
169 # graceful shutdown in idle state 169 # graceful shutdown in idle state
170 170
171 $s = Test::Nginx::HTTP3->new(); 171 $s = Test::Nginx::HTTP3->new();
172 $sid = $s->new_stream(); 172 $sid = $s->new_stream();
173 173
174 select undef, undef, undef, 0.1;
175
174 $t->reload(); 176 $t->reload();
175 177
176 $frames = $s->read(all => [{ type => 'GOAWAY' }]); 178 $frames = $s->read(all => [{ type => 'GOAWAY' }]);
177 179
178 ($frame) = grep { $_->{type} eq "GOAWAY" } @$frames; 180 ($frame) = grep { $_->{type} eq "GOAWAY" } @$frames;