]> granicus.if.org Git - ejabberd/commitdiff
Fix csi tests
authorPaweł Chmielowski <pchmielowski@process-one.net>
Thu, 12 Apr 2018 15:08:27 +0000 (17:08 +0200)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Thu, 12 Apr 2018 15:08:27 +0000 (17:08 +0200)
test/csi_tests.erl

index f9d47d55f7725b01281da643d86133dae36ec0c4..2b346e275f642a77f8be303b4ee833aceac82e73 100644 (file)
@@ -55,7 +55,7 @@ master_slave_cases() ->
 all_master(Config) ->
     Peer = ?config(peer, Config),
     Presence = #presence{to = Peer},
-    ChatState = #message{to = Peer, thread = <<"1">>,
+    ChatState = #message{to = Peer, thread = #message_thread{data = <<"1">>},
                         sub_els = [#chatstate{type = active}]},
     Message = ChatState#message{body = [#text{data = <<"body">>}]},
     PepPayload = xmpp:encode(#presence{}),
@@ -133,15 +133,15 @@ all_slave(Config) ->
                          [#ps_item{
                              id = <<"pep-2">>}]}},
            #delay{}]} = recv_message(Config),
-    #message{from = Peer, thread = <<"1">>,
+    #message{from = Peer, thread = #message_thread{data = <<"1">>},
             sub_els = [#chatstate{type = composing},
                        #delay{}]} = recv_message(Config),
-    #message{from = Peer, thread = <<"1">>,
+    #message{from = Peer, thread = #message_thread{data = <<"1">>},
             body = [#text{data = <<"body">>}],
             sub_els = [#chatstate{type = active}]} = recv_message(Config),
     change_client_state(Config, active),
     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),
     disconnect(Config).