Skip to content

Commit e6a2670

Browse files
committed
Skip stream queue tests in mixed-version cluster testing
These tests requires a level of availability that mixed-version clusters cannot provide, so they are skipped under these conditions. References #4133
1 parent fe7358e commit e6a2670

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

deps/rabbit/test/rabbit_stream_queue_SUITE.erl

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,17 @@ groups() ->
4242
{cluster_size_2, [], [recover]},
4343
{cluster_size_2_parallel, [parallel], all_tests()},
4444
{cluster_size_3, [],
45-
[restart_coordinator_without_queues,
45+
[
46+
restart_coordinator_without_queues,
4647
delete_down_replica,
4748
replica_recovery,
4849
leader_failover,
4950
leader_failover_dedupe,
5051
add_replicas,
5152
publish_coordinator_unavailable,
5253
leader_locator_policy,
53-
queue_size_on_declare]},
54+
queue_size_on_declare
55+
]},
5456
{cluster_size_3_1, [], [shrink_coordinator_cluster]},
5557
{cluster_size_3_2, [], [recover,
5658
declare_with_node_down]},
@@ -206,6 +208,16 @@ init_per_testcase(TestCase, Config)
206208
_ ->
207209
init_test_case(TestCase, Config)
208210
end;
211+
init_per_testcase(TestCase, Config)
212+
when TestCase == replica_recovery
213+
orelse TestCase == leader_failover ->
214+
case rabbit_ct_helpers:is_mixed_versions() of
215+
true ->
216+
%% not supported because of machine version difference
217+
{skip, "mixed version clusters are not supported"};
218+
_ ->
219+
init_test_case(TestCase, Config)
220+
end;
209221
init_per_testcase(TestCase, Config) ->
210222
init_test_case(TestCase, Config).
211223

0 commit comments

Comments
 (0)