diff --git a/eureka-client/src/test/java/com/netflix/discovery/InstanceInfoReplicatorTest.java b/eureka-client/src/test/java/com/netflix/discovery/InstanceInfoReplicatorTest.java index 4174dc694e..76e5417469 100644 --- a/eureka-client/src/test/java/com/netflix/discovery/InstanceInfoReplicatorTest.java +++ b/eureka-client/src/test/java/com/netflix/discovery/InstanceInfoReplicatorTest.java @@ -76,7 +76,7 @@ public void testOnDemandUpdateRateLimiting() throws Throwable { assertTrue(replicator.onDemandUpdate()); Thread.sleep(10); // give some time for execution assertFalse(replicator.onDemandUpdate()); - Thread.sleep(10); + Thread.sleep(1000); verify(discoveryClient, times(2)).refreshInstanceInfo(); verify(discoveryClient, times(1)).register();