From 31faf7a9dc08d96493fd6e3cdf4bf8669445ac77 Mon Sep 17 00:00:00 2001 From: vkatsuba Date: Thu, 16 Sep 2021 22:40:48 +0300 Subject: [PATCH] Add race_conditions_SUITE to dynamic_domains --- big_tests/tests/race_conditions_SUITE.erl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/big_tests/tests/race_conditions_SUITE.erl b/big_tests/tests/race_conditions_SUITE.erl index 5976d519df5..6945f0b4d25 100644 --- a/big_tests/tests/race_conditions_SUITE.erl +++ b/big_tests/tests/race_conditions_SUITE.erl @@ -129,20 +129,20 @@ ignore_iq_result_from_old_session(Config) -> start_delayiq_handler() -> NS = delayiq_ns(), - Domain = domain(), + HostType = host_type(), %% Register our module as an iq handler. %% It's important to use IQDisc=parallel, because %% this particular IQ should be executed in a separate process. - Args = [ejabberd_sm, Domain, NS, ?MODULE, handle_delayiq_iq, parallel], + Args = [ejabberd_sm, HostType, NS, ?MODULE, handle_delayiq_iq, parallel], mongoose_helper:successful_rpc(gen_iq_handler, add_iq_handler, Args). stop_delayiq_handler() -> NS = delayiq_ns(), - Domain = domain(), + HostType = host_type(), %% Register our module as an iq handler. %% It's important to use IQDisc=parallel, because %% this particular IQ should be executed in a separate process. - Args = [ejabberd_sm, Domain, NS], + Args = [ejabberd_sm, HostType, NS], mongoose_helper:successful_rpc(gen_iq_handler, remove_iq_handler, Args). %% Brand new IQ namespace. @@ -159,8 +159,8 @@ delayiq_iq() -> attrs = [{<<"caller_pid">>, BinCallerPid}]}, escalus_stanza:iq_get(delayiq_ns(), [Payload]). -domain() -> - ct:get_config({hosts, mim, domain}). +host_type() -> + ct:get_config({hosts, mim, host_type}). %% This function is executed by MongooseIM handle_delayiq_iq(_From, _To, Acc, IQ) ->