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:
parent
eb8f631e22
commit
0e36184a61
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue