Skip to content

Commit 0f31120

Browse files
committed
update unit test
Signed-off-by: jiangyuan <[email protected]>
1 parent 5e9753e commit 0f31120

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-cloud-gateway-server/src/test/java/org/springframework/cloud/gateway/filter/factory/RetryGatewayFilterFactoryIntegrationTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ public void retryWithBackoffTimeout() {
130130
.exchange()
131131
.expectStatus()
132132
.isEqualTo(HttpStatus.INTERNAL_SERVER_ERROR);
133+
assertThat(TestConfig.map.get("retry-with-backoff-timeout")).isNotNull().hasValue(2);
133134
}
134135

135136
@Test
@@ -398,7 +399,7 @@ public RouteLocator hystrixRouteLocator(RouteLocatorBuilder builder) {
398399
.filters(f -> f.prefixPath("/httpbin").retry(config -> {
399400
config.setRetries(3)
400401
.setBackoff(Duration.ofMillis(100), null, 2, true)
401-
.setTimeout(Duration.ofMillis(100));
402+
.setTimeout(Duration.ofMillis(200));
402403
}))
403404
.uri(uri))
404405

0 commit comments

Comments
 (0)