summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordcorbacho <dparracorbacho@piotal.io>2020-04-10 14:40:43 +0100
committerdcorbacho <dparracorbacho@piotal.io>2020-04-10 14:40:43 +0100
commitae07ff2892892068bda8abc996f7b4d2150fdf3f (patch)
tree2bcb3178cf1d3e8ab56534afd97fe1edd681ea6c
parentbe144f487c2eb69df0e6c39a58e3ce0adb8d8a26 (diff)
downloadrabbitmq-server-git-ae07ff2892892068bda8abc996f7b4d2150fdf3f.tar.gz
Wait until node detects new cluster configuration
CI has failed with an mnesia error where the rabbit_queue table doesn't exist. The actual logs don't show any error on the remaining node so let's assume that is mnesia detecting the other node going down. This really shouldn't happen, but I can't reproduce it either.
-rw-r--r--test/list_queues_online_and_offline_SUITE.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/list_queues_online_and_offline_SUITE.erl b/test/list_queues_online_and_offline_SUITE.erl
index 5985901e75..bb799f64dd 100644
--- a/test/list_queues_online_and_offline_SUITE.erl
+++ b/test/list_queues_online_and_offline_SUITE.erl
@@ -85,6 +85,11 @@ list_queues_online_and_offline(Config) ->
rabbit_ct_broker_helpers:rabbitmqctl(Config, B, ["stop"]),
+ rabbit_ct_helpers:await_condition(
+ fun() ->
+ [A] == rpc:call(A, rabbit_mnesia, cluster_nodes, [running])
+ end, 60000),
+
GotUp = lists:sort(rabbit_ct_broker_helpers:rabbitmqctl_list(Config, A,
["list_queues", "--online", "name", "--no-table-headers"])),
ExpectUp = [[<<"q_a_1">>], [<<"q_a_2">>]],