Skip to content

Commit e43a0a9

Browse files
HoloRinmichaelklishin
authored andcommitted
Temporarily switch back an unfortunate atom
the value was changed in test, but not at its source (cherry picked from commit f5697b1) (cherry picked from commit 4800783)
1 parent f8132f0 commit e43a0a9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/dynamic_ha_SUITE.erl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
-include_lib("proper/include/proper.hrl").
3535
-include_lib("eunit/include/eunit.hrl").
3636
-include_lib("amqp_client/include/amqp_client.hrl").
37+
-include_lib("rabbitmq_ct_helpers/include/rabbit_assert.hrl").
3738

3839
-compile(export_all).
3940

@@ -378,8 +379,10 @@ nodes_policy_should_pick_master_from_its_params(Config) ->
378379
[all])),
379380
%% --> Master: A
380381
%% Slaves: [B, C] or [C, B]
381-
Info = find_queue(?QNAME, A),
382-
SSPids = proplists:get_value(synchronised_slave_pids, Info),
382+
SSPids = ?awaitMatch(SSPids when is_list(SSPids),
383+
proplists:get_value(synchronized_slave_pids,
384+
find_queue(?QNAME, A)),
385+
5000),
383386

384387
%% Choose slave that isn't the first sync slave. Cover a bug that always
385388
%% chose the first, even if it was not part of the policy

0 commit comments

Comments
 (0)