Skip to content

Commit 0fdce27

Browse files
committed
dynamic_ha_SUITE: Add a new kind of failing set of policies
References rabbitmq#889. [#126767013]
1 parent 6ad34a4 commit 0fdce27

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/dynamic_ha_SUITE.erl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,13 @@ failing_random_policies(Config) ->
265265
%% Those set of policies were found as failing by PropEr in the
266266
%% `random_policy` test above. We add them explicitely here to make
267267
%% sure they get tested.
268-
true = test_random_policy(Config, Nodes,
269-
[{nodes, [A, B]}, {nodes, [A]}]),
270-
true = test_random_policy(Config, Nodes,
271-
[{exactly, 3}, undefined, all, {nodes, [B]}]).
268+
?assertEqual(true, test_random_policy(Config, Nodes,
269+
[{nodes, [A, B]}, {nodes, [A]}])),
270+
?assertEqual(true, test_random_policy(Config, Nodes,
271+
[{exactly, 3}, undefined, all, {nodes, [B]}])),
272+
?assertEqual(true, test_random_policy(Config, Nodes,
273+
[all, undefined, {exactly, 2}, all, {exactly, 3}, {exactly, 3},
274+
undefined, {exactly, 3}, all])).
272275

273276
%%----------------------------------------------------------------------------
274277

0 commit comments

Comments
 (0)