Skip to content

Commit f672627

Browse files
committed
Skip Khepri-specific tests when 3.13 is in the mix
1 parent e8da7b2 commit f672627

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

deps/rabbit/test/queue_length_limits_SUITE.erl

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,17 @@ init_per_group(mnesia_parallel_tests = Group, Config0) ->
8282
Config = rabbit_ct_helpers:set_config(Config0, [{metadata_store, mnesia}]),
8383
init_per_group0(Group, Config);
8484
init_per_group(khepri_parallel_tests = Group, Config0) ->
85-
Config = rabbit_ct_helpers:set_config(Config0, [{metadata_store, khepri}]),
86-
init_per_group0(Group, Config).
85+
%% this is very hacky way of skipping the tests, but the khepri_db
86+
%% flag exists in 3,13, but it's not compatible with 4.x. We can remove
87+
%% this after 4.2
88+
SecondaryDist = os:getenv("SECONDARY_DIST", ""),
89+
case string:str(SecondaryDist, "3.13.") == 0 of
90+
true ->
91+
Config = rabbit_ct_helpers:set_config(Config0, [{metadata_store, khepri}]),
92+
init_per_group0(Group, Config);
93+
_ ->
94+
{skip, "Khepri was not supported in 3.13"}
95+
end.
8796

8897
init_per_group0(Group, Config) ->
8998
case lists:member({group, Group}, all()) of

0 commit comments

Comments
 (0)