Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Use $RABBITMQ_NODENAME instead of hard-coding nodename
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbbell committed Oct 19, 2015
1 parent b9f4c3c commit 6d29cca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/src/rabbit_federation_exchange_test.erl
Expand Up @@ -74,7 +74,7 @@ multiple_uris_test() ->
expect_uris([]) -> ok;
expect_uris(URIs) -> [Link] = rabbit_federation_status:status(),
URI = pget(uri, Link),
kill_only_connection(n("rabbit-test")),
kill_only_connection(n(os:getenv("RABBITMQ_NODENAME"))),
expect_uris(URIs -- [URI]).

kill_only_connection(Node) ->
Expand Down
5 changes: 3 additions & 2 deletions test/src/rabbit_federation_test_util.erl
Expand Up @@ -114,8 +114,9 @@ no_plugins(Cfg) ->
%% "fake" cfg to let us use various utility functions when running
%% in-broker tests
single_cfg() ->
[{nodename, 'rabbit-test'},
{node, rabbit_nodes:make('rabbit-test')},
Nodename = list_to_atom(os:getenv("RABBITMQ_NODENAME")),
[{nodename, Nodename},
{node, rabbit_nodes:make(Nodename)},
{port, 5672}].

%%----------------------------------------------------------------------------
Expand Down

0 comments on commit 6d29cca

Please sign in to comment.