fix(test): delete mnesia schema in-between test suites
When using `emqx_common_test_helpers` at least. This should help reduce the need for superfluous cleanups and test failures due to unclean state.
This commit is contained in:
parent
d942a531e6
commit
b14a420885
|
@ -299,6 +299,7 @@ generate_config(SchemaModule, ConfigFile) when is_atom(SchemaModule) ->
|
|||
-spec stop_apps(list()) -> ok.
|
||||
stop_apps(Apps) ->
|
||||
[application:stop(App) || App <- Apps ++ [emqx, ekka, mria, mnesia]],
|
||||
ok = mria_mnesia:delete_schema(),
|
||||
%% to avoid inter-suite flakiness
|
||||
application:unset_env(emqx, init_config_load_done),
|
||||
persistent_term:erase(?EMQX_AUTHENTICATION_SCHEMA_MODULE_PT_KEY),
|
||||
|
|
Loading…
Reference in New Issue