summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2018-07-10 21:25:06 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2018-07-10 21:25:06 +0200
commit7e5d766a02a8f2210c223925dbe029d71055dad5 (patch)
tree691a5c82a1a066738095324b5da0052d12ffb0fd /test
parentmod_http_upload_quota: Fix process name lookup (diff)
pubsub_tests: Fix race condition
Diffstat (limited to 'test')
-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 718a5b7b..ca468f77 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{