Skip to content

Commit

Permalink
Replace localhost to domain
Browse files Browse the repository at this point in the history
  • Loading branch information
vkatsuba committed Sep 17, 2021
1 parent 3437e53 commit bb466d1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions big_tests/tests/metrics_api_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

-include_lib("eunit/include/eunit.hrl").

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

%%--------------------------------------------------------------------
%% Suite configuration
%%--------------------------------------------------------------------
Expand Down Expand Up @@ -167,7 +169,7 @@ one_message_error(Config) ->
(Config, metrics_helper:userspec(1, Config),
fun(User1) ->
Chat = escalus_stanza:chat_to
(<<"nobody@localhost">>, <<"Hi!">>),
(<<"nobody@", (domain())/binary>>, <<"Hi!">>),
escalus_client:send(User1, Chat),
escalus_client:wait_for_stanza(User1)
end,
Expand All @@ -194,7 +196,7 @@ one_presence_error(Config) ->
(Config, metrics_helper:userspec(1, Config),
fun(User1) ->
BadPres = escalus_stanza:presence_direct
(<<"localhost/no-such-resource">>, <<"subscribed">>, []),
(<<(domain())/binary, "/no-such-resource">>, <<"subscribed">>, []),
escalus_client:send(User1, BadPres),
escalus_client:wait_for_stanza(User1)
end,
Expand Down Expand Up @@ -384,7 +386,7 @@ find(CounterName, CounterList) ->
fetch_counter_value(Counter, _Config) ->
Metric = atom_to_binary(Counter, utf8),

HostType = domain_helper:host_type(mim),
HostType = host_type(mim),
HostTypeName = metrics_helper:make_host_type_name(HostType),

Result = simple_request(<<"GET">>,
Expand Down

0 comments on commit bb466d1

Please sign in to comment.