Skip to content

Commit e66cc6d

Browse files
committed
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.
1 parent bd7d500 commit e66cc6d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

deps/rabbitmq_mqtt/test/mqtt_shared_SUITE.erl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,13 @@ init_per_group(Group, Config0) ->
204204
Config,
205205
rabbit_ct_broker_helpers:setup_steps() ++
206206
rabbit_ct_client_helpers:setup_steps()),
207-
util:enable_plugin(Config1, rabbitmq_mqtt),
208-
Config1.
207+
case Config1 of
208+
_ when is_list(Config1) ->
209+
util:enable_plugin(Config1, rabbitmq_mqtt),
210+
Config1;
211+
{skip, _} ->
212+
Config1
213+
end.
209214

210215
end_per_group(G, Config)
211216
when G =:= cluster_size_1;

0 commit comments

Comments
 (0)