Disables jmx for test

This commit is contained in:
Spencer Gibb
2019-02-07 15:25:06 -05:00
parent df3db1bcc4
commit da8feee32e

View File

@@ -51,7 +51,7 @@ public class GatewayNoLoadBalancerClientAutoConfigurationTests {
@Test
public void noLoadBalancerClientReportsError() {
try (ConfigurableApplicationContext context = new SpringApplication(Config.class)
.run("--server.port="+port)) {
.run("--server.port="+port, "--spring.jmx.enabled=false")) {
WebTestClient client = WebTestClient.bindToServer().baseUrl("http://localhost:" + port).build();
client.get()
.header(HttpHeaders.HOST, "www.lbfail.org")