chore(ct): ekka_mnesia -> mria_mnesia

This commit is contained in:
k32 2021-10-15 20:00:35 +02:00
parent 73a4816d9c
commit fcdf10080d
2 changed files with 4 additions and 5 deletions

View File

@ -290,8 +290,8 @@ reload(App, SpecAppConfigHandler) ->
application:start(App).
ensure_mnesia_stopped() ->
ekka_mnesia:ensure_stopped(),
ekka_mnesia:delete_schema().
mria:stop(),
mria_mnesia:delete_schema().
%% Help function to wait for Fun to yield 'true'.
wait_for(Fn, Ln, F, Timeout) ->

View File

@ -80,8 +80,8 @@ do_mock(emqx_broker) ->
fun(Msg) -> {node(), <<"test">>, Msg} end);
do_mock(emqx_stats) ->
meck:expect(emqx_stats, getstats, fun() -> [0] end);
do_mock(ekka_mnesia) ->
meck:expect(ekka_mnesia, running_nodes, fun() -> [node()] end);
do_mock(mria_mnesia) ->
meck:expect(mria_mnesia, running_nodes, fun() -> [node()] end);
do_mock(emqx_metrics) ->
meck:expect(emqx_metrics, all, fun() -> [{hello, 3}] end).
@ -129,4 +129,3 @@ postcondition(_State, {call, _Mod, _Fun, _Args}, _Res) ->
next_state(State, _Res, {call, _Mod, _Fun, _Args}) ->
NewState = State,
NewState.