@@ -161,6 +161,8 @@ func TestSpringBootFatJarConsole(t *testing.T) {
161161
162162 expectedCommand := GetJavaCommand ()
163163 expectedArgs := GetMinimalExpectedSpringBootFatJarArgsForRole (jar , ConsoleMain , "" )
164+ expectedArgs = append (expectedArgs , "-Dcoherence.localport.adjust=true" ,
165+ "-Dcoherence.management.http.enabled=false" , "-Dcoherence.metrics.http.enabled=false" )
164166
165167 e , err := ExecuteWithArgsAndNewViper (env , args )
166168 g .Expect (err ).NotTo (HaveOccurred ())
@@ -192,7 +194,10 @@ func TestSpringBootFatJarConsoleWithArgs(t *testing.T) {
192194 env := EnvVarsFromDeployment (d )
193195
194196 expectedCommand := GetJavaCommand ()
195- expectedArgs := append (GetMinimalExpectedSpringBootFatJarArgsForRole (jar , ConsoleMain , "" ), "foo" , "bar" )
197+ expectedArgs := GetMinimalExpectedSpringBootFatJarArgsForRole (jar , ConsoleMain , "" )
198+ expectedArgs = append (expectedArgs , "-Dcoherence.localport.adjust=true" ,
199+ "-Dcoherence.management.http.enabled=false" , "-Dcoherence.metrics.http.enabled=false" ,
200+ "foo" , "bar" )
196201
197202 e , err := ExecuteWithArgsAndNewViper (env , args )
198203 g .Expect (err ).NotTo (HaveOccurred ())
0 commit comments