diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-03-07 18:11:28 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-03-07 18:11:28 +0300 |
commit | 0aa22e514984d6c3ad20849f7908c0d77c7bd15b (patch) | |
tree | d282efa1bf4a5dc43a6d4207c915a08f2ae59bda /test/suite.erl | |
parent | Best 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.erl | 6 |
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. |