Skip to content

Commit

Permalink
fix CircuitBreakerUrlTest
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgonzalez committed Feb 28, 2024
1 parent f132d5b commit d111898
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,14 @@ public void testBadRequest() throws Exception {

assert (breaker.isClosed());

CircuitBreakerUrl cburl = CircuitBreakerUrl.builder().setUrl("http://sdsfsf.com")
.setMethod(Method.POST).setTimeout(timeout).setCircuitBreaker(breaker).build();
CircuitBreakerUrl cburl =
CircuitBreakerUrl.builder()
// Returns 400 Bad Request
.setUrl("https://run.mocky.io/v3/434b4b0e-9a8b-4895-88e3-beab1b8d0a0d")
.setMethod(Method.POST)
.setTimeout(timeout)
.setCircuitBreaker(breaker)
.build();
cburl.doOut(nos);
}

Expand Down

0 comments on commit d111898

Please sign in to comment.