diff --git a/sentinel-adapter/sentinel-sofa-rpc-adapter/src/test/java/com/alibaba/csp/sentinel/adapter/sofa/rpc/fallback/SofaRpcFallbackRegistryTest.java b/sentinel-adapter/sentinel-sofa-rpc-adapter/src/test/java/com/alibaba/csp/sentinel/adapter/sofa/rpc/fallback/SofaRpcFallbackRegistryTest.java index 15930d10bd..9958723fe8 100644 --- a/sentinel-adapter/sentinel-sofa-rpc-adapter/src/test/java/com/alibaba/csp/sentinel/adapter/sofa/rpc/fallback/SofaRpcFallbackRegistryTest.java +++ b/sentinel-adapter/sentinel-sofa-rpc-adapter/src/test/java/com/alibaba/csp/sentinel/adapter/sofa/rpc/fallback/SofaRpcFallbackRegistryTest.java @@ -70,5 +70,9 @@ public SofaResponse handle(FilterInvoker invoker, SofaRequest request, BlockExce SofaResponse consumerResponse = SofaRpcFallbackRegistry.getConsumerFallback().handle(null, null, null); assertNotNull(consumerResponse); assertEquals("test consumer response", consumerResponse.getAppResponse()); + + // Reset to default provider and consumer fallback + SofaRpcFallbackRegistry.setProviderFallback(new DefaultSofaRpcFallback()); + SofaRpcFallbackRegistry.setConsumerFallback(new DefaultSofaRpcFallback()); } }