cluster_SUITE: Handle error returned by rabbit_ct_broker_helpers

[Why]
It didn't handle them before and crashed later when it assumed the
return value was a list.
This commit is contained in:
Jean-Sébastien Pédron 2025-08-07 12:35:52 +02:00
parent eb8f631e22
commit 0e36184a61
No known key found for this signature in database
GPG Key ID: 39E99761A5FD94CC
1 changed files with 7 additions and 2 deletions

View File

@ -85,8 +85,13 @@ init_per_testcase(Testcase, Config) ->
[fun merge_app_env/1] ++
setup_steps() ++
rabbit_ct_client_helpers:setup_steps()),
case Config2 of
_ when is_list(Config2) ->
util:enable_plugin(Config2, rabbitmq_mqtt),
Config2.
Config2;
{skip, _} ->
Config2
end.
end_per_testcase(Testcase, Config) ->
rabbit_ct_helpers:run_steps(Config,