mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix csi tests
This commit is contained in:
parent
89d91b609a
commit
95244c3b6f
@ -55,7 +55,7 @@ master_slave_cases() ->
|
|||||||
all_master(Config) ->
|
all_master(Config) ->
|
||||||
Peer = ?config(peer, Config),
|
Peer = ?config(peer, Config),
|
||||||
Presence = #presence{to = Peer},
|
Presence = #presence{to = Peer},
|
||||||
ChatState = #message{to = Peer, thread = <<"1">>,
|
ChatState = #message{to = Peer, thread = #message_thread{data = <<"1">>},
|
||||||
sub_els = [#chatstate{type = active}]},
|
sub_els = [#chatstate{type = active}]},
|
||||||
Message = ChatState#message{body = [#text{data = <<"body">>}]},
|
Message = ChatState#message{body = [#text{data = <<"body">>}]},
|
||||||
PepPayload = xmpp:encode(#presence{}),
|
PepPayload = xmpp:encode(#presence{}),
|
||||||
@ -133,15 +133,15 @@ all_slave(Config) ->
|
|||||||
[#ps_item{
|
[#ps_item{
|
||||||
id = <<"pep-2">>}]}},
|
id = <<"pep-2">>}]}},
|
||||||
#delay{}]} = recv_message(Config),
|
#delay{}]} = recv_message(Config),
|
||||||
#message{from = Peer, thread = <<"1">>,
|
#message{from = Peer, thread = #message_thread{data = <<"1">>},
|
||||||
sub_els = [#chatstate{type = composing},
|
sub_els = [#chatstate{type = composing},
|
||||||
#delay{}]} = recv_message(Config),
|
#delay{}]} = recv_message(Config),
|
||||||
#message{from = Peer, thread = <<"1">>,
|
#message{from = Peer, thread = #message_thread{data = <<"1">>},
|
||||||
body = [#text{data = <<"body">>}],
|
body = [#text{data = <<"body">>}],
|
||||||
sub_els = [#chatstate{type = active}]} = recv_message(Config),
|
sub_els = [#chatstate{type = active}]} = recv_message(Config),
|
||||||
change_client_state(Config, active),
|
change_client_state(Config, active),
|
||||||
wait_for_master(Config),
|
wait_for_master(Config),
|
||||||
#message{from = Peer, thread = <<"1">>,
|
#message{from = Peer, thread = #message_thread{data = <<"1">>},
|
||||||
sub_els = [#chatstate{type = active}]} = recv_message(Config),
|
sub_els = [#chatstate{type = active}]} = recv_message(Config),
|
||||||
disconnect(Config).
|
disconnect(Config).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user