Skip to content

Commit 489ace3

Browse files
committed
rabbit_mgmt_http_SUITE: Enable rabbitmq_4.0.0 feature flag
[Why] This testsuite apparently requires it and if it's not enabled, it fails.
1 parent f445e00 commit 489ace3

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

deps/rabbitmq_management/test/rabbit_mgmt_http_SUITE.erl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,17 @@ start_broker(Config) ->
244244
Setup0 = rabbit_ct_broker_helpers:setup_steps(),
245245
Setup1 = rabbit_ct_client_helpers:setup_steps(),
246246
Steps = Setup0 ++ Setup1,
247-
rabbit_ct_helpers:run_setup_steps(Config, Steps).
247+
case rabbit_ct_helpers:run_setup_steps(Config, Steps) of
248+
{skip, _} = Skip ->
249+
Skip;
250+
Config1 ->
251+
Ret = rabbit_ct_broker_helpers:enable_feature_flag(
252+
Config1, 'rabbitmq_4.0.0'),
253+
case Ret of
254+
ok -> Config1;
255+
_ -> Ret
256+
end
257+
end.
248258

249259
finish_init(Group, Config) ->
250260
rabbit_ct_helpers:log_environment(),

0 commit comments

Comments
 (0)