mqtt_shared_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-04 19:43:11 +02:00
parent 19ed2493a4
commit 8bdbb0fc23
No known key found for this signature in database
GPG Key ID: 39E99761A5FD94CC
1 changed files with 7 additions and 2 deletions

View File

@ -204,8 +204,13 @@ init_per_group(Group, Config0) ->
Config,
rabbit_ct_broker_helpers:setup_steps() ++
rabbit_ct_client_helpers:setup_steps()),
util:enable_plugin(Config1, rabbitmq_mqtt),
Config1.
case Config1 of
_ when is_list(Config1) ->
util:enable_plugin(Config1, rabbitmq_mqtt),
Config1;
{skip, _} ->
Config1
end.
end_per_group(G, Config)
when G =:= cluster_size_1;