Skip to content

Commit dc8d460

Browse files
committed
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.
1 parent d672799 commit dc8d460

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

deps/rabbitmq_mqtt/test/cluster_SUITE.erl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,13 @@ init_per_testcase(Testcase, Config) ->
8585
[fun merge_app_env/1] ++
8686
setup_steps() ++
8787
rabbit_ct_client_helpers:setup_steps()),
88-
util:enable_plugin(Config2, rabbitmq_mqtt),
89-
Config2.
88+
case Config2 of
89+
_ when is_list(Config2) ->
90+
util:enable_plugin(Config2, rabbitmq_mqtt),
91+
Config2;
92+
{skip, _} ->
93+
Config2
94+
end.
9095

9196
end_per_testcase(Testcase, Config) ->
9297
rabbit_ct_helpers:run_steps(Config,

0 commit comments

Comments
 (0)