Skip to content

Commit f5697b1

Browse files
committed
Temporarily switch back an unfortunate atom
the value was changed in test, but not at its source
1 parent 9b4ce6c commit f5697b1

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

@@ -436,8 +437,10 @@ nodes_policy_should_pick_master_from_its_params(Config) ->
436437
[all])),
437438
%% --> Master: A
438439
%% Slaves: [B, C] or [C, B]
439-
Info = find_queue(?QNAME, A),
440-
SSPids = proplists:get_value(synchronised_follower_pids, Info),
440+
SSPids = ?awaitMatch(SSPids when is_list(SSPids),
441+
proplists:get_value(synchronized_slave_pids,
442+
find_queue(?QNAME, A)),
443+
5000),
441444

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

0 commit comments

Comments
 (0)