Use test name for the RabbitMQ node name
Each test case should have its own broker, rather than re-use the same broker for the entire test suite. Signed-off-by: Jean-Sébastien Pedron <jean-sebastien@rabbitmq.com>
This commit is contained in:
parent
8611b20678
commit
ddee4d8ef8
|
@ -9,10 +9,11 @@ all() ->
|
||||||
connect_options
|
connect_options
|
||||||
].
|
].
|
||||||
|
|
||||||
init_per_testcase(_, Config) ->
|
init_per_testcase(TestCase, Config) ->
|
||||||
|
Suffix = rabbit_ct_helpers:testcase_absname(Config, TestCase, "-"),
|
||||||
Config1 = rabbit_ct_helpers:set_config(Config,
|
Config1 = rabbit_ct_helpers:set_config(Config,
|
||||||
[{rmq_certspwd, "bunnychow"},
|
[{rmq_certspwd, "bunnychow"},
|
||||||
{rmq_nodename_suffix, ?MODULE}]),
|
{rmq_nodename_suffix, Suffix}]),
|
||||||
rabbit_ct_helpers:log_environment(),
|
rabbit_ct_helpers:log_environment(),
|
||||||
Config2 = rabbit_ct_helpers:run_setup_steps(
|
Config2 = rabbit_ct_helpers:run_setup_steps(
|
||||||
Config1,
|
Config1,
|
||||||
|
|
Loading…
Reference in New Issue