Skip to content

Commit

Permalink
Add race_conditions_SUITE to dynamic_domain
Browse files Browse the repository at this point in the history
  • Loading branch information
vkatsuba committed Sep 20, 2021
1 parent 57bf9ae commit dfa9ec2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions big_tests/tests/race_conditions_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

-include("mam_helper.hrl"). %% mam? we need assert_equal_extra

-import(domain_helper, [domain/0]).
-import(domain_helper, [host_type/0]).

%%--------------------------------------------------------------------
%% Suite configuration
Expand Down Expand Up @@ -131,20 +131,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 Down

0 comments on commit dfa9ec2

Please sign in to comment.