Skip to content

Commit b9dc398

Browse files
author
Matt Jacobs
committed
Added logging to HystrixCircuitBreakerTest.testCircuitClosedAfterSuccess
1 parent ff85933 commit b9dc398

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hystrix-core/src/test/java/com/netflix/hystrix/HystrixCircuitBreakerTest.java

+2
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ public void testCircuitClosedAfterSuccess() {
372372

373373
// everything has failed in the test window so we should return false now
374374
Thread.sleep(100);
375+
System.out.println("CircuitBreaker state 1 : " + cmd1.getMetrics().getHealthCounts());
375376
assertFalse(cb.allowRequest());
376377
assertTrue(cb.isOpen());
377378

@@ -391,6 +392,7 @@ public void testCircuitClosedAfterSuccess() {
391392
asyncResult.toBlocking().single();
392393

393394
// all requests should be open again
395+
System.out.println("CircuitBreaker state 2 : " + cmd1.getMetrics().getHealthCounts());
394396
assertTrue(cb.allowRequest());
395397
assertTrue(cb.allowRequest());
396398
assertTrue(cb.allowRequest());

0 commit comments

Comments
 (0)