test(quic): fix flaky test

This commit is contained in:
William Yang 2023-01-18 09:54:18 +01:00
parent d8fa65ea09
commit f8fd201a8c
1 changed files with 1 additions and 3 deletions

View File

@ -1541,10 +1541,8 @@ t_multi_streams_remote_shutdown(Config) ->
{quic, _Conn, _Ctrlstream} = proplists:get_value(socket, emqtt:info(C)),
ok = stop_emqx(),
timer:sleep(200),
start_emqx_quic(?config(port, Config)),
timer:sleep(200),
%% Client should be closed
?assertMatch({'EXIT', {noproc, {gen_statem, call, [_, info, infinity]}}}, catch emqtt:info(C)).