Skip to content

Commit

Permalink
Fix order dependent tests in SofaRpcFallbackRegistryTest (alibaba#3282)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaaiVenkat authored and z-soulx committed May 27, 2024
1 parent 8775d59 commit e1e7ecd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

0 comments on commit e1e7ecd

Please sign in to comment.