From 25e0e121e5242593126da343fc5767404121f003 Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Thu, 8 Apr 2021 20:15:43 +0200 Subject: [PATCH] chore(test): ensure snabbkaffe block until is not timeout --- test/emqx_connection_SUITE.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/emqx_connection_SUITE.erl b/test/emqx_connection_SUITE.erl index ae1587d7b..d5a082f7e 100644 --- a/test/emqx_connection_SUITE.erl +++ b/test/emqx_connection_SUITE.erl @@ -414,8 +414,8 @@ t_oom_shutdown(_) -> with_conn( fun(Pid) -> Pid ! {tcp_passive, foo}, - ?block_until(#{?snk_kind := check_oom}, 100), - ?block_until(#{?snk_kind := terminate}, 10), + {ok, _} = ?block_until(#{?snk_kind := check_oom}, 1000), + {ok, _} = ?block_until(#{?snk_kind := terminate}, 100), Trace = snabbkaffe:collect_trace(), ?assertEqual(1, length(?of_kind(terminate, Trace))), receive