fix:fix custom fallback exception.

pull/1080/head
Shanyou Yu (Sean Yu) 2 years ago committed by Haotian Zhang
parent 9ff2ea6945
commit 7fbab3e6a7

@ -9,3 +9,4 @@
- feat:refactor SDKContext as static.
- docs:add release GitHub Action.
- docs:update Polaris test environment ip.
- fix:fix custom fallback exception.

@ -149,8 +149,7 @@ public class PolarisCircuitBreakerRestTemplateIntegrationTest {
Utils.sleepUninterrupted(2000);
assertThat(restTemplateFallbackFromCode2.getForObject("/example/service/b/info", String.class)).isEqualTo("\"this is a fallback class\"");
Utils.sleepUninterrupted(2000);
assertThat(restTemplateFallbackFromCode3.getForEntity("/example/service/b/info", String.class)
.getStatusCode()).isEqualTo(HttpStatus.OK);
assertThat(restTemplateFallbackFromCode3.getForEntity("/example/service/b/info", String.class).getStatusCode()).isEqualTo(HttpStatus.OK);
Utils.sleepUninterrupted(2000);
assertThat(restTemplateFallbackFromCode4.getForObject("/example/service/b/info", String.class)).isEqualTo("fallback");
Utils.sleepUninterrupted(2000);

Loading…
Cancel
Save