Skip to content

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
arturobernalg committed Oct 21, 2023
1 parent 83ae058 commit d45d68d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down Expand Up @@ -100,6 +99,8 @@ public void backoffDoesNotAdjustDuringCoolDownPeriod() {
// Manipulate lastRouteBackoffs to simulate that not enough time has passed for the cooldown period
final Map<HttpRoute, Instant> lastRouteBackoffs = impl.getLastRouteBackoffs();
lastRouteBackoffs.put(route, Instant.now().minusMillis(10));

// Perform another backoff
impl.backOff(route);
assertEquals(max, connPerRoute.getMaxPerRoute(route));
}
Expand Down

0 comments on commit d45d68d

Please sign in to comment.