Skip to content

Commit

Permalink
Exclude two tests from mixed version runs #11559
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Jul 12, 2024
1 parent ec828e9 commit dbd3cad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions deps/rabbitmq_prometheus/test/rabbit_prometheus_http_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,16 @@ end_per_group_(Config) ->
rabbit_ct_helpers:run_teardown_steps(Config, rabbit_ct_client_helpers:teardown_steps()
++ rabbit_ct_broker_helpers:teardown_steps()).

init_per_testcase(Testcase, Config)
when Testcase =:= queue_counter_metrics_per_object_test;
Testcase =:= queue_exchange_metrics_per_object_test ->
case rabbit_ct_helpers:is_mixed_versions() of
false ->
rabbit_ct_helpers:testcase_started(Config, Testcase);
true ->
%% skip the test in mixed version mode
{skip, "Should not run in mixed version environments"}
end;
init_per_testcase(Testcase, Config) ->
rabbit_ct_helpers:testcase_started(Config, Testcase).

Expand Down

0 comments on commit dbd3cad

Please sign in to comment.