From bd38ceb02e1b26432da7baa7a50e764d589023d5 Mon Sep 17 00:00:00 2001 From: Olga Maciaszek-Sharma Date: Thu, 16 Jan 2025 14:54:20 +0100 Subject: [PATCH] Try fixing flaky test. Signed-off-by: Olga Maciaszek-Sharma --- .../cloud/netflix/eureka/server/EurekaInstanceMonitorTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-cloud-netflix-eureka-server/src/test/java/org/springframework/cloud/netflix/eureka/server/EurekaInstanceMonitorTests.java b/spring-cloud-netflix-eureka-server/src/test/java/org/springframework/cloud/netflix/eureka/server/EurekaInstanceMonitorTests.java index 30d67b32e..f45d609ca 100644 --- a/spring-cloud-netflix-eureka-server/src/test/java/org/springframework/cloud/netflix/eureka/server/EurekaInstanceMonitorTests.java +++ b/spring-cloud-netflix-eureka-server/src/test/java/org/springframework/cloud/netflix/eureka/server/EurekaInstanceMonitorTests.java @@ -30,6 +30,7 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.cloud.netflix.eureka.server.metrics.EurekaInstanceMonitor; import org.springframework.context.annotation.Configuration; +import org.springframework.web.bind.annotation.RestController; import static java.util.concurrent.TimeUnit.MILLISECONDS; import static java.util.concurrent.TimeUnit.SECONDS; @@ -170,6 +171,7 @@ class EurekaInstanceMonitorTests { @Configuration(proxyBeanMethods = false) @EnableAutoConfiguration @EnableEurekaServer + @RestController protected static class Application { }