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:
Gerhard Lazu 2016-11-24 11:27:42 +00:00 committed by Gerhard Lazu
parent 8611b20678
commit ddee4d8ef8
1 changed files with 3 additions and 2 deletions

View File

@ -9,10 +9,11 @@ all() ->
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,
[{rmq_certspwd, "bunnychow"},
{rmq_nodename_suffix, ?MODULE}]),
{rmq_nodename_suffix, Suffix}]),
rabbit_ct_helpers:log_environment(),
Config2 = rabbit_ct_helpers:run_setup_steps(
Config1,