Skip to content

Commit dbd3cad

Browse files
Exclude two tests from mixed version runs #11559
1 parent ec828e9 commit dbd3cad

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

deps/rabbitmq_prometheus/test/rabbit_prometheus_http_SUITE.erl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,16 @@ end_per_group_(Config) ->
305305
rabbit_ct_helpers:run_teardown_steps(Config, rabbit_ct_client_helpers:teardown_steps()
306306
++ rabbit_ct_broker_helpers:teardown_steps()).
307307

308+
init_per_testcase(Testcase, Config)
309+
when Testcase =:= queue_counter_metrics_per_object_test;
310+
Testcase =:= queue_exchange_metrics_per_object_test ->
311+
case rabbit_ct_helpers:is_mixed_versions() of
312+
false ->
313+
rabbit_ct_helpers:testcase_started(Config, Testcase);
314+
true ->
315+
%% skip the test in mixed version mode
316+
{skip, "Should not run in mixed version environments"}
317+
end;
308318
init_per_testcase(Testcase, Config) ->
309319
rabbit_ct_helpers:testcase_started(Config, Testcase).
310320

0 commit comments

Comments
 (0)