fix(tests): increase test event timeout
This commit is contained in:
parent
5cbdfa61b8
commit
dbb519ee0e
|
@ -438,7 +438,7 @@ t_connect_client_never_negative({'end', _Config}) ->
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
wait_for_events(Action, Kinds) ->
|
wait_for_events(Action, Kinds) ->
|
||||||
wait_for_events(Action, Kinds, 100).
|
wait_for_events(Action, Kinds, 500).
|
||||||
|
|
||||||
wait_for_events(Action, Kinds, Timeout) ->
|
wait_for_events(Action, Kinds, Timeout) ->
|
||||||
Predicate = fun(#{?snk_kind := K}) ->
|
Predicate = fun(#{?snk_kind := K}) ->
|
||||||
|
@ -465,7 +465,7 @@ wait_for_stats(Action, Stats) ->
|
||||||
false
|
false
|
||||||
end,
|
end,
|
||||||
N = length(Stats),
|
N = length(Stats),
|
||||||
Timeout = 100,
|
Timeout = 500,
|
||||||
{ok, Sub} = snabbkaffe_collector:subscribe(Predicate, N, Timeout, 0),
|
{ok, Sub} = snabbkaffe_collector:subscribe(Predicate, N, Timeout, 0),
|
||||||
Res = Action(),
|
Res = Action(),
|
||||||
case snabbkaffe_collector:receive_events(Sub) of
|
case snabbkaffe_collector:receive_events(Sub) of
|
||||||
|
|
Loading…
Reference in New Issue