summaryrefslogtreecommitdiff
path: root/test/suite.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-03-07 18:11:28 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-03-07 18:11:28 +0300
commit0aa22e514984d6c3ad20849f7908c0d77c7bd15b (patch)
treed282efa1bf4a5dc43a6d4207c915a08f2ae59bda /test/suite.erl
parentBest Practices for Use of SASL EXTERNAL with Certificates (XEP-0178) support (diff)
Don't call deprecated jid functions from the test suite
Diffstat (limited to 'test/suite.erl')
-rw-r--r--test/suite.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/suite.erl b/test/suite.erl
index 6b8a49f2..76be5f80 100644
--- a/test/suite.erl
+++ b/test/suite.erl
@@ -689,7 +689,7 @@ get_features(Config) ->
get_features(Config, server_jid(Config)).
get_features(Config, To) ->
- ct:comment("Getting features of ~s", [jid:to_string(To)]),
+ ct:comment("Getting features of ~s", [jid:encode(To)]),
#iq{type = result, sub_els = [#disco_info{features = Features}]} =
send_recv(Config, #iq{type = get, sub_els = [#disco_info{}], to = To}),
Features.
@@ -738,7 +738,7 @@ set_roster(Config, Subscription, Groups) ->
PeerBareJID = jid:remove_resource(PeerJID),
PeerLJID = jid:tolower(PeerBareJID),
ct:comment("Adding ~s to roster with subscription '~s' in groups ~p",
- [jid:to_string(PeerBareJID), Subscription, Groups]),
+ [jid:encode(PeerBareJID), Subscription, Groups]),
{atomic, _} = mod_roster:set_roster(#roster{usj = {U, S, PeerLJID},
us = {U, S},
jid = PeerLJID,
@@ -754,7 +754,7 @@ del_roster(Config, PeerJID) ->
{U, S, _} = jid:tolower(MyJID),
PeerBareJID = jid:remove_resource(PeerJID),
PeerLJID = jid:tolower(PeerBareJID),
- ct:comment("Removing ~s from roster", [jid:to_string(PeerBareJID)]),
+ ct:comment("Removing ~s from roster", [jid:encode(PeerBareJID)]),
{atomic, _} = mod_roster:del_roster(U, S, PeerLJID),
Config.