Skip to content

Commit

Permalink
Use maps in ensure_modules calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Premwoik committed Mar 7, 2022
1 parent 3fd4c86 commit 5da0e04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions big_tests/tests/graphql_account_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ end_per_suite(Config) ->
escalus:end_per_suite(Config).

init_per_group(admin_account_handler, Config) ->
dynamic_modules:ensure_modules(domain_helper:host_type(), [{mod_last, []}]),
dynamic_modules:ensure_modules(domain_helper:secondary_host_type(), [{mod_last, []}]),
Mods = [{mod_last, config_parser_helper:default_mod_config(mod_last)}],
dynamic_modules:ensure_modules(domain_helper:host_type(), Mods),
dynamic_modules:ensure_modules(domain_helper:secondary_host_type(), Mods),
Config1 = escalus:create_users(Config, escalus:get_users([alice])),
graphql_helper:init_admin_handler(Config1);
init_per_group(user_account_handler, Config) ->
Expand Down
2 changes: 1 addition & 1 deletion big_tests/tests/graphql_stanza_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ init_mam(Config) when is_list(Config) ->
disabled ->
Config;
Backend ->
Mods = [{mod_mam_meta, [{backend, Backend}, {pm, []}]}],
Mods = [{mod_mam_meta, mam_helper:config_opts(#{backend => Backend, pm => #{}})}],
dynamic_modules:ensure_modules(domain_helper:host_type(), Mods),
[{has_mam, true}|Config]
end;
Expand Down

0 comments on commit 5da0e04

Please sign in to comment.