fix: set retry interval to 1s in test cases
This commit is contained in:
parent
f4f263f91e
commit
c72a0c386f
|
@ -547,7 +547,7 @@ commit_status_trans(Operator, TnxId) ->
|
|||
mnesia:select(?CLUSTER_COMMIT, [{MatchHead, [Guard], [Result]}]).
|
||||
|
||||
get_retry_ms() ->
|
||||
emqx_conf:get(["node", "cluster_call", "retry_interval"], timer:minutes(1)).
|
||||
emqx_conf:get([node, cluster_call, retry_interval], timer:minutes(1)).
|
||||
|
||||
maybe_init_tnx_id(_Node, TnxId) when TnxId < 0 -> ok;
|
||||
maybe_init_tnx_id(Node, TnxId) ->
|
||||
|
|
|
@ -44,6 +44,7 @@ init_per_suite(Config) ->
|
|||
application:load(emqx_conf),
|
||||
ok = ekka:start(),
|
||||
ok = mria_rlog:wait_for_shards([?CLUSTER_RPC_SHARD], infinity),
|
||||
ok = emqx_config:put([node, cluster_call, retry_interval], 1000),
|
||||
meck:new(emqx_alarm, [non_strict, passthrough, no_link]),
|
||||
meck:expect(emqx_alarm, activate, 3, ok),
|
||||
meck:expect(emqx_alarm, deactivate, 3, ok),
|
||||
|
|
Loading…
Reference in New Issue