fix(tests): increase test event timeout

This commit is contained in:
Thales Macedo Garitezi 2021-11-05 15:16:09 -03:00
parent 5cbdfa61b8
commit dbb519ee0e
No known key found for this signature in database
GPG Key ID: DD279F8152A9B6DD
1 changed files with 2 additions and 2 deletions

View File

@ -438,7 +438,7 @@ t_connect_client_never_negative({'end', _Config}) ->
ok.
wait_for_events(Action, Kinds) ->
wait_for_events(Action, Kinds, 100).
wait_for_events(Action, Kinds, 500).
wait_for_events(Action, Kinds, Timeout) ->
Predicate = fun(#{?snk_kind := K}) ->
@ -465,7 +465,7 @@ wait_for_stats(Action, Stats) ->
false
end,
N = length(Stats),
Timeout = 100,
Timeout = 500,
{ok, Sub} = snabbkaffe_collector:subscribe(Predicate, N, Timeout, 0),
Res = Action(),
case snabbkaffe_collector:receive_events(Sub) of