chore(test): ensure snabbkaffe block until is not timeout

This commit is contained in:
Zaiming Shi 2021-04-08 20:15:43 +02:00 committed by Zaiming (Stone) Shi
parent ae9278a409
commit 25e0e121e5
1 changed files with 2 additions and 2 deletions

View File

@ -414,8 +414,8 @@ t_oom_shutdown(_) ->
with_conn( with_conn(
fun(Pid) -> fun(Pid) ->
Pid ! {tcp_passive, foo}, Pid ! {tcp_passive, foo},
?block_until(#{?snk_kind := check_oom}, 100), {ok, _} = ?block_until(#{?snk_kind := check_oom}, 1000),
?block_until(#{?snk_kind := terminate}, 10), {ok, _} = ?block_until(#{?snk_kind := terminate}, 100),
Trace = snabbkaffe:collect_trace(), Trace = snabbkaffe:collect_trace(),
?assertEqual(1, length(?of_kind(terminate, Trace))), ?assertEqual(1, length(?of_kind(terminate, Trace))),
receive receive