Skip to content

Commit

Permalink
Temporarily switch back an unfortunate atom
Browse files Browse the repository at this point in the history
the value was changed in test, but not at its source

(cherry picked from commit f5697b1)
  • Loading branch information
pjk25 authored and michaelklishin committed Jul 22, 2020
1 parent 309aa31 commit 4800783
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/dynamic_ha_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
-include_lib("proper/include/proper.hrl").
-include_lib("eunit/include/eunit.hrl").
-include_lib("amqp_client/include/amqp_client.hrl").
-include_lib("rabbitmq_ct_helpers/include/rabbit_assert.hrl").

-compile(export_all).

Expand Down Expand Up @@ -427,8 +428,10 @@ nodes_policy_should_pick_master_from_its_params(Config) ->
[all])),
%% --> Master: A
%% Slaves: [B, C] or [C, B]
Info = find_queue(?QNAME, A),
SSPids = proplists:get_value(synchronised_follower_pids, Info),
SSPids = ?awaitMatch(SSPids when is_list(SSPids),
proplists:get_value(synchronized_slave_pids,
find_queue(?QNAME, A)),
5000),

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

0 comments on commit 4800783

Please sign in to comment.