|
9 | 9 | get_coercion_err_msg/1, make_creds/1, get_unauthorized/1,
|
10 | 10 | get_err_code/1, get_not_loaded/1]).
|
11 | 11 |
|
12 |
| --import(config_parser_helper, [mod_config/2]). |
| 12 | +-import(config_parser_helper, [config/2]). |
13 | 13 |
|
14 | 14 | -include_lib("common_test/include/ct.hrl").
|
15 | 15 | -include_lib("jid/include/jid.hrl").
|
@@ -209,12 +209,15 @@ end_per_suite(Config) ->
|
209 | 209 | escalus:end_per_suite(Config).
|
210 | 210 |
|
211 | 211 | required_modules(_) ->
|
212 |
| - Backend = mongoose_helper:mnesia_or_rdbms_backend(), |
213 |
| - MucLightOpts = mod_config(mod_muc_light, #{backend => Backend, |
214 |
| - rooms_in_rosters => true, |
215 |
| - config_schema => custom_schema()}), |
| 212 | + MucLightOpts = config([modules, mod_muc_light], muc_light_opts()), |
216 | 213 | [{mod_muc_light, MucLightOpts}].
|
217 | 214 |
|
| 215 | +muc_light_opts() -> |
| 216 | + #{backend => mongoose_helper:mnesia_or_rdbms_backend(), |
| 217 | + cache_affs => #{}, |
| 218 | + rooms_in_rosters => true, |
| 219 | + config_schema => custom_schema()}. |
| 220 | + |
218 | 221 | custom_schema() ->
|
219 | 222 | %% Should be sorted
|
220 | 223 | [{<<"background">>, <<>>, background, binary},
|
|
0 commit comments