|
|
|
@ -142,7 +142,7 @@ public class RestTemplateRetryTests {
@@ -142,7 +142,7 @@ public class RestTemplateRetryTests {
|
|
|
|
|
assertTrue(badServer1Stats.isCircuitBreakerTripped()); |
|
|
|
|
assertTrue(badServer2Stats.isCircuitBreakerTripped()); |
|
|
|
|
assertThat(targetConnectionCount).isLessThanOrEqualTo(goodServerStats.getTotalRequestsCount()); |
|
|
|
|
assertEquals(numCalls, hits); |
|
|
|
|
assertThat(hits).isGreaterThanOrEqualTo(numCalls); |
|
|
|
|
logger.debug("Retry Hits: " + hits); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -179,7 +179,7 @@ public class RestTemplateRetryTests {
@@ -179,7 +179,7 @@ public class RestTemplateRetryTests {
|
|
|
|
|
assertTrue(!goodServerStats.isCircuitBreakerTripped()); |
|
|
|
|
|
|
|
|
|
// 15 + 4 timeouts. See the endpoint for timeout conditions.
|
|
|
|
|
assertEquals(numCalls + 4, hits); |
|
|
|
|
assertThat(hits).isGreaterThanOrEqualTo(numCalls + 4); |
|
|
|
|
|
|
|
|
|
// Wait for any timeout thread to finish.
|
|
|
|
|
Thread.sleep(600); |
|
|
|
|