Skip to content

Commit fd50fd7

Browse files
Move delays to the test where they belong
1 parent ae11d9a commit fd50fd7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/simple_ha_SUITE.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ declare_synchrony(Config) ->
121121
#amqp_msg{props = #'P_basic'{delivery_mode = 2}}),
122122
amqp_channel:wait_for_confirms(RabbitCh),
123123
rabbit_ct_broker_helpers:kill_node(Config, Rabbit),
124-
timer:sleep(?DELAY),
125124

126125
#'queue.declare_ok'{message_count = 1} = declare(HareCh, Q),
127126
ok.
@@ -139,8 +138,10 @@ clean_up_exclusive_queues(Config) ->
139138
amqp_channel:call(ChA, #'queue.declare'{queue = QName,
140139
exclusive = true}),
141140
ok = rabbit_ct_broker_helpers:kill_node(Config, A),
141+
timer:sleep(?DELAY),
142142
[] = rabbit_ct_broker_helpers:rpc(Config, B, rabbit_amqqueue, list, []),
143143
ok = rabbit_ct_broker_helpers:start_node(Config, A),
144+
timer:sleep(?DELAY),
144145
[[],[]] = rabbit_ct_broker_helpers:rpc_all(Config, rabbit_amqqueue, list, []),
145146
ok.
146147

0 commit comments

Comments
 (0)