diff options
| author | Philip Kuryloski <kuryloskip@vmware.com> | 2020-07-02 11:50:30 +0200 |
|---|---|---|
| committer | Philip Kuryloski <kuryloskip@vmware.com> | 2020-07-02 11:50:30 +0200 |
| commit | f5697b175579cfe798e1a00d3dfe00138cdb920c (patch) | |
| tree | 16e837ae0c320db1aa6b56738542839c8794086c /test | |
| parent | 9b4ce6c72fb15d2fd2e5b438a7c46ee9ee19cd32 (diff) | |
| download | rabbitmq-server-git-f5697b175579cfe798e1a00d3dfe00138cdb920c.tar.gz | |
Temporarily switch back an unfortunate atom
the value was changed in test, but not at its source
Diffstat (limited to 'test')
| -rw-r--r-- | test/dynamic_ha_SUITE.erl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/dynamic_ha_SUITE.erl b/test/dynamic_ha_SUITE.erl index 3b7eca40e4..0ffde6ab71 100644 --- a/test/dynamic_ha_SUITE.erl +++ b/test/dynamic_ha_SUITE.erl @@ -34,6 +34,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). @@ -436,8 +437,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 |
