Skip to content

Commit d934a59

Browse files
dynamic_ha suite: remove a racy assertion
Asserting that a process on a remote node is down at this very moment is inherently racy and opportunistic. rabbit_ct_broker_helpers:force_vhost_failure/2 will retry up to 10 times to make sure that the top vhost supervision tree process did go down. That is good enough. Per discussion with @kjnilsson. (cherry picked from commit 8ee9666)
1 parent 37d5d18 commit d934a59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/dynamic_ha_SUITE.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ slave_recovers_after_vhost_down_and_up(Config) ->
437437

438438
%% Crash vhost on a node hosting a mirror
439439
rabbit_ct_broker_helpers:force_vhost_failure(Config, B, <<"/">>),
440-
%% Vhost is down now
441-
false = rabbit_ct_broker_helpers:rpc(Config, B, rabbit_vhost_sup_sup, is_vhost_alive, [<<"/">>]),
440+
%% rabbit_ct_broker_helpers:force_vhost_failure/2 will retry up to 10 times to
441+
%% make sure that the top vhost supervision tree process did go down. MK.
442442
timer:sleep(500),
443443
%% Vhost is back up
444444
case rabbit_ct_broker_helpers:rpc(Config, B, rabbit_vhost_sup_sup, start_vhost, [<<"/">>]) of

0 commit comments

Comments
 (0)