diff --git a/httpclient5/src/test/java/org/apache/hc/client5/http/impl/classic/TestExponentialBackoffManager.java b/httpclient5/src/test/java/org/apache/hc/client5/http/impl/classic/TestExponentialBackoffManager.java index 2fc2a4e70c..7e22a53728 100644 --- a/httpclient5/src/test/java/org/apache/hc/client5/http/impl/classic/TestExponentialBackoffManager.java +++ b/httpclient5/src/test/java/org/apache/hc/client5/http/impl/classic/TestExponentialBackoffManager.java @@ -30,7 +30,6 @@ import org.apache.hc.core5.http.HttpHost; import org.apache.hc.core5.util.TimeValue; import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.RepeatedTest; import org.junit.jupiter.api.Test; @@ -100,6 +99,8 @@ public void backoffDoesNotAdjustDuringCoolDownPeriod() { // Manipulate lastRouteBackoffs to simulate that not enough time has passed for the cooldown period final Map lastRouteBackoffs = impl.getLastRouteBackoffs(); lastRouteBackoffs.put(route, Instant.now().minusMillis(10)); + + // Perform another backoff impl.backOff(route); assertEquals(max, connPerRoute.getMaxPerRoute(route)); }