25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

pubsub_tests: Fix race condition

This commit is contained in:
Holger Weiss 2018-07-10 21:25:06 +02:00
parent c5dd1bdd9d
commit 7e5d766a02

View File

@ -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{