summaryrefslogtreecommitdiff
path: root/test/carbons_tests.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-02-16 11:00:26 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-02-16 11:10:24 +0300
commit8b2d3084986defd6045a0c02706415e0e7ae4b3f (patch)
tree419b64fc2d07646d221fdfa2f526e057fb34c6d2 /test/carbons_tests.erl
parentMerge branch 'master' of github.com:processone/ejabberd (diff)
Change routing API
Now 'From' and 'To' arguments must be omitted in functions and structures related to routing. The commit deprecates the following functions: ejabberd_router:route/3 in favor of ejabberd_router:route/1 ejabberd_router:route_error/4 in favor of ejabberd_router:route_error/2 ejabberd_local:route_iq/4 in favor of ejabberd_local:route_iq/2 ejabberd_local:route_iq/5 in favor of ejabberd_local:route_iq/3 The format of {route, From, To, Packet} is changed in favor of {route, Packet}
Diffstat (limited to 'test/carbons_tests.erl')
-rw-r--r--test/carbons_tests.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/carbons_tests.erl b/test/carbons_tests.erl
index a85cece8..f703bb2c 100644
--- a/test/carbons_tests.erl
+++ b/test/carbons_tests.erl
@@ -146,7 +146,7 @@ send_messages(Config) ->
end;
({recv, #message{} = Msg}) ->
ejabberd_router:route(
- JID, MyJID, Msg#message{from = JID, to = MyJID}),
+ Msg#message{from = JID, to = MyJID}),
ct:comment("Receiving message ~s", [xmpp:pp(Msg)]),
#message{} = recv_message(Config)
end, message_iterator(Config)).