diff --git a/deps/rabbitmq_cli/test/core/helpers_test.exs b/deps/rabbitmq_cli/test/core/helpers_test.exs index 7889c7b7f3..f1f54fc0ab 100644 --- a/deps/rabbitmq_cli/test/core/helpers_test.exs +++ b/deps/rabbitmq_cli/test/core/helpers_test.exs @@ -119,6 +119,7 @@ defmodule HelpersTest do ## ------------------- normalise_node tests (:longnames) -------------------- test "longnames: if nil input, retrieve standard rabbit hostname" do + Distribution.stop default_name = Config.get_option(:node) options = %{node: default_name, longnames: true} Distribution.start(options) @@ -129,6 +130,7 @@ defmodule HelpersTest do end test "longnames: if input is an atom short name, return the atom with full hostname" do + Distribution.stop options = %{node: :rabbit_test, longnames: true} Distribution.start(options) want = case domain() do