mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
fix(gateway): wire presence grace, request limits and voice sync (#3329)
This commit is contained in:
1 parent
a32d8e4f52
commit
bc17922b02
12 files changed
+442
-118
No files matched your search
@@ -90,6 +90,14 @@ nodeup_cancels_grace_period_test() ->
|
||||
timer:sleep(50),
|
||||
?assertEqual(ok, gen_server:stop(Pid)).
|
||||
|
||||
nodedown_grace_expiry_clears_pending_cleanup_test() ->
|
||||
{ok, Pid} = maybe_start_for_test(),
|
||||
ok = presence_cache:handle_nodedown('lost@node'),
|
||||
?assertMatch(#{'lost@node' := _}, maps:get(pending_nodedown_cleanups, sys:get_state(Pid))),
|
||||
Pid ! {nodedown_grace_expired, 'lost@node'},
|
||||
?assertEqual(#{}, maps:get(pending_nodedown_cleanups, sys:get_state(Pid))),
|
||||
?assertEqual(ok, gen_server:stop(Pid)).
|
||||
|
||||
anti_entropy_no_op_when_in_sync_test() ->
|
||||
{ok, Pid} = maybe_start_for_test(),
|
||||
State = cache_state(sys:get_state(Pid)),
|
||||
|
||||
Reference in new issue
Block a user