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
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2018-07-10 22:25:06 +0300
committerHolger Weiss <holger@zedat.fu-berlin.de>2018-07-10 22:25:06 +0300
commit7e5d766a02a8f2210c223925dbe029d71055dad5 (patch)
tree691a5c82a1a066738095324b5da0052d12ffb0fd
parentc5dd1bdd9d54d64f23bf81e2da0d9bc0c4c36ed8 (diff)
pubsub_tests: Fix race condition
-rw-r--r--test/pubsub_tests.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/pubsub_tests.erl b/test/pubsub_tests.erl
index 718a5b7b5..ca468f779 100644
--- a/test/pubsub_tests.erl
+++ b/test/pubsub_tests.erl
@@ -217,7 +217,7 @@ master_slave_cases() ->
publish_master(Config) ->
Node = create_node(Config, <<>>),
put_event(Config, Node),
- wait_for_slave(Config),
+ ready = get_event(Config),
#ps_item{id = ID} = publish_item(Config, Node),
#ps_item{id = ID} = get_event(Config),
delete_node(Config, Node),
@@ -226,7 +226,7 @@ publish_master(Config) ->
publish_slave(Config) ->
Node = get_event(Config),
subscribe_node(Config, Node),
- wait_for_master(Config),
+ put_event(Config, ready),
#message{
sub_els =
[#ps_event{