Skip to content

Commit

Permalink
Fix order dependent tests in SofaRpcFallbackRegistryTest (#3282)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaaiVenkat authored and LearningGp committed Dec 27, 2023
1 parent 94f92ea commit 1dea350
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 1dea350

Please sign in to comment.