Skip to content

Commit

Permalink
Add race_conditions_SUITE to dynamic_domains
Browse files Browse the repository at this point in the history
  • Loading branch information
vkatsuba committed Sep 16, 2021
1 parent a674c09 commit 31faf7a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions big_tests/tests/race_conditions_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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) ->
Expand Down

0 comments on commit 31faf7a

Please sign in to comment.