Updates test expectations

This commit is contained in:
sgibb
2024-03-12 09:51:30 -04:00
parent 54588c2628
commit 7f2d96cd2d

View File

@@ -94,8 +94,8 @@ public abstract class SpringCloudCircuitBreakerFilterFactoryTests extends BaseWe
@Test
public void filterErrorPage() {
testClient.get().uri("/delay/3").header("Host", "www.circuitbreakerconnectfail.org").accept(APPLICATION_JSON)
.exchange().expectStatus().is5xxServerError().expectBody().jsonPath("$.status").isEqualTo(500)
.jsonPath("$.message").isNotEmpty().jsonPath("$.error").isEqualTo("Internal Server Error");
.exchange().expectStatus().is5xxServerError().expectBody().jsonPath("$.status").isEqualTo(504)
.jsonPath("$.message").isNotEmpty().jsonPath("$.error").isEqualTo("Gateway Timeout");
}
@Test