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 committed Dec 24, 2023
1 parent 5108046 commit 6879fdd
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 6879fdd

Please sign in to comment.