summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2016-07-22 13:47:36 +0200
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2016-07-22 13:47:36 +0200
commit0fdce27055a3391d9a33945d33a5ca803f48ea13 (patch)
tree40f5ad1649b7ea30861c247bf01c92f7d43fd762 /test
parent6ad34a433978b1cb6eaf4db481ac55e4382b3ef4 (diff)
downloadrabbitmq-server-git-0fdce27055a3391d9a33945d33a5ca803f48ea13.tar.gz
dynamic_ha_SUITE: Add a new kind of failing set of policies
References #889. [#126767013]
Diffstat (limited to 'test')
-rw-r--r--test/dynamic_ha_SUITE.erl11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/dynamic_ha_SUITE.erl b/test/dynamic_ha_SUITE.erl
index b2c98f8ca4..e0a8329d39 100644
--- a/test/dynamic_ha_SUITE.erl
+++ b/test/dynamic_ha_SUITE.erl
@@ -265,10 +265,13 @@ failing_random_policies(Config) ->
%% Those set of policies were found as failing by PropEr in the
%% `random_policy` test above. We add them explicitely here to make
%% sure they get tested.
- true = test_random_policy(Config, Nodes,
- [{nodes, [A, B]}, {nodes, [A]}]),
- true = test_random_policy(Config, Nodes,
- [{exactly, 3}, undefined, all, {nodes, [B]}]).
+ ?assertEqual(true, test_random_policy(Config, Nodes,
+ [{nodes, [A, B]}, {nodes, [A]}])),
+ ?assertEqual(true, test_random_policy(Config, Nodes,
+ [{exactly, 3}, undefined, all, {nodes, [B]}])),
+ ?assertEqual(true, test_random_policy(Config, Nodes,
+ [all, undefined, {exactly, 2}, all, {exactly, 3}, {exactly, 3},
+ undefined, {exactly, 3}, all])).
%%----------------------------------------------------------------------------