mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
pubsub_tests: Fix race condition
This commit is contained in:
parent
c5dd1bdd9d
commit
7e5d766a02
@ -217,7 +217,7 @@ master_slave_cases() ->
|
|||||||
publish_master(Config) ->
|
publish_master(Config) ->
|
||||||
Node = create_node(Config, <<>>),
|
Node = create_node(Config, <<>>),
|
||||||
put_event(Config, Node),
|
put_event(Config, Node),
|
||||||
wait_for_slave(Config),
|
ready = get_event(Config),
|
||||||
#ps_item{id = ID} = publish_item(Config, Node),
|
#ps_item{id = ID} = publish_item(Config, Node),
|
||||||
#ps_item{id = ID} = get_event(Config),
|
#ps_item{id = ID} = get_event(Config),
|
||||||
delete_node(Config, Node),
|
delete_node(Config, Node),
|
||||||
@ -226,7 +226,7 @@ publish_master(Config) ->
|
|||||||
publish_slave(Config) ->
|
publish_slave(Config) ->
|
||||||
Node = get_event(Config),
|
Node = get_event(Config),
|
||||||
subscribe_node(Config, Node),
|
subscribe_node(Config, Node),
|
||||||
wait_for_master(Config),
|
put_event(Config, ready),
|
||||||
#message{
|
#message{
|
||||||
sub_els =
|
sub_els =
|
||||||
[#ps_event{
|
[#ps_event{
|
||||||
|
Loading…
Reference in New Issue
Block a user