Browse Source

Trys to make test more robust

pull/1478/head
Spencer Gibb 5 years ago
parent
commit
c520fa1c2f
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 2
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/HystrixGatewayFilterFactoryTests.java

2
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/HystrixGatewayFilterFactoryTests.java

@ -127,7 +127,7 @@ public class HystrixGatewayFilterFactoryTests extends BaseWebClientTests {
testClient.get().uri("/delay/3").header("Host", "www.hystrixconnectfail.org") testClient.get().uri("/delay/3").header("Host", "www.hystrixconnectfail.org")
.accept(APPLICATION_JSON).exchange().expectStatus().is5xxServerError() .accept(APPLICATION_JSON).exchange().expectStatus().is5xxServerError()
.expectBody().jsonPath("$.status").value(Matchers.greaterThanOrEqualTo(500)).jsonPath("$.message") .expectBody().jsonPath("$.status").value(Matchers.greaterThanOrEqualTo(500)).jsonPath("$.message")
.isNotEmpty().jsonPath("$.error").isEqualTo("Internal Server Error"); .isNotEmpty().jsonPath("$.error").isNotEmpty();
} }
@Test @Test

Loading…
Cancel
Save