Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2014-08-26 22:21:27 +0400
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2014-08-27 12:55:31 +0400
commitbfd028beea57965df26283bb149cddd3c8637303 (patch)
tree54f350356407282e592c97c9e18131ea1c50904f /test
parent2cb0f92fe6d514b1d2382620420055aec9b019dd (diff)
Recompile the xmpp_codec using updated XML generator
Diffstat (limited to 'test')
-rw-r--r--test/ejabberd_SUITE.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/ejabberd_SUITE.erl b/test/ejabberd_SUITE.erl
index f6f6bef44..a1a2256b7 100644
--- a/test/ejabberd_SUITE.erl
+++ b/test/ejabberd_SUITE.erl
@@ -519,16 +519,16 @@ sm(Config) ->
Msg = #message{to = ServerJID, body = [#text{data = <<"body">>}]},
true = ?config(sm, Config),
%% Enable the session management with resumption enabled
- send(Config, #sm_enable{resume = true}),
+ send(Config, #sm_enable{resume = true, xmlns = ?NS_STREAM_MGMT_3}),
#sm_enabled{id = ID, resume = true} = recv(),
%% Initial request; 'h' should be 0.
- send(Config, #sm_r{}),
+ send(Config, #sm_r{xmlns = ?NS_STREAM_MGMT_3}),
#sm_a{h = 0} = recv(),
%% sending two messages and requesting again; 'h' should be 3.
send(Config, Msg),
send(Config, Msg),
send(Config, Msg),
- send(Config, #sm_r{}),
+ send(Config, #sm_r{xmlns = ?NS_STREAM_MGMT_3}),
#sm_a{h = 3} = recv(),
close_socket(Config),
{save_config, set_opt(sm_previd, ID, Config)}.
@@ -543,11 +543,11 @@ sm_resume(Config) ->
Msg = #message{from = ServerJID, to = MyJID, body = [Txt]},
%% Route message. The message should be queued by the C2S process.
ejabberd_router:route(ServerJID, MyJID, xmpp_codec:encode(Msg)),
- send(Config, #sm_resume{previd = ID, h = 0}),
+ send(Config, #sm_resume{previd = ID, h = 0, xmlns = ?NS_STREAM_MGMT_3}),
#sm_resumed{previd = ID, h = 3} = recv(),
#message{from = ServerJID, to = MyJID, body = [Txt]} = recv(),
#sm_r{} = recv(),
- send(Config, #sm_a{h = 1}),
+ send(Config, #sm_a{h = 1, xmlns = ?NS_STREAM_MGMT_3}),
disconnect(Config).
private(Config) ->