diff options
| author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2016-07-22 13:47:36 +0200 |
|---|---|---|
| committer | Diana Corbacho <diana@rabbitmq.com> | 2016-08-31 10:46:55 +0100 |
| commit | 666c5188a929f5eaf455795c7c3efa5d23a71dbf (patch) | |
| tree | b991123b800501f02dfacbdd60d54a56fd77d015 /test | |
| parent | 9f34f606c5de8c14ee636144b5b7973eed6b18ec (diff) | |
| download | rabbitmq-server-git-666c5188a929f5eaf455795c7c3efa5d23a71dbf.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.erl | 11 |
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])). %%---------------------------------------------------------------------------- |
