chore(test): ensure snabbkaffe block until is not timeout
This commit is contained in:
parent
ae9278a409
commit
25e0e121e5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue