File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
deps/rabbitmq_cli/test/core Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,12 @@ defmodule DistributionTest do
2727 :exit , _ -> :ok
2828 end
2929
30- System . put_env ( "RABBITMQ_ERLANG_COOKIE" , "mycookie" )
31- opts = % { }
32- Distribution . start ( opts )
33- :mycookie = Node . get_cookie ( )
30+ if ! System . get_env ( "CI" ) do
31+ System . put_env ( "RABBITMQ_ERLANG_COOKIE" , "mycookie" )
32+ opts = % { }
33+ Distribution . start ( opts )
34+ :mycookie = Node . get_cookie ( )
35+ end
3436 end
3537
3638 test "set cookie via argument" do
@@ -45,8 +47,10 @@ defmodule DistributionTest do
4547 :exit , _ -> :ok
4648 end
4749
48- opts = % { erlang_cookie: :mycookie }
49- Distribution . start ( opts )
50- :mycookie = Node . get_cookie ( )
50+ if ! System . get_env ( "CI" ) do
51+ opts = % { erlang_cookie: :mycookie }
52+ Distribution . start ( opts )
53+ :mycookie = Node . get_cookie ( )
54+ end
5155 end
5256end
You can’t perform that action at this time.
0 commit comments