Skip to content

Commit bbc704e

Browse files
committed
auth_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 7aea2fd commit bbc704e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

deps/rabbitmq_mqtt/test/auth_SUITE.erl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,13 @@ init_per_group(Group, Config) ->
185185
end] ++
186186
rabbit_ct_broker_helpers:setup_steps() ++
187187
rabbit_ct_client_helpers:setup_steps()),
188-
util:enable_plugin(Config2, rabbitmq_mqtt),
189-
Config2.
188+
case Config2 of
189+
_ when is_list(Config2) ->
190+
util:enable_plugin(Config2, rabbitmq_mqtt),
191+
Config2;
192+
{skip, _} ->
193+
Config2
194+
end.
190195

191196
end_per_group(G, Config)
192197
when G =:= v4;

0 commit comments

Comments
 (0)