]> granicus.if.org Git - ejabberd/commitdiff
Fix race in CSI test case
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Thu, 30 Oct 2014 21:26:22 +0000 (00:26 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Thu, 30 Oct 2014 21:26:22 +0000 (00:26 +0300)
test/ejabberd_SUITE.erl

index bb39795ea51dc2849582eb7ea3932b44b07aabe2..50fa70bd915fc809fbe2d22a07f096038304e294 100644 (file)
@@ -1583,7 +1583,7 @@ client_state_slave(Config) ->
     Peer = ?config(master, Config),
     send(Config, #csi{type = inactive}),
     wait_for_master(Config),
-    #presence{from = Peer, sub_els = [#delay{}]} = recv(),
+    #presence{from = Peer, sub_els = [#vcard_xupdate{}|_]} = recv(),
     #message{from = Peer, thread = <<"1">>, sub_els = [#chatstate{type = active}],
             body = [#text{data = <<"body">>}]} = recv(),
     wait_for_master(Config),