Skip to content

Commit

Permalink
fix flaky test com.ctrip.framework.apollo.configservice.service.AppNa…
Browse files Browse the repository at this point in the history
…mespaceServiceWithCacheTest#testAppNamespace (#4998)
  • Loading branch information
ThugJudy authored Oct 20, 2023
1 parent 5e49df6 commit a632cc1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;

/**
* @author Jason Song([email protected])
Expand Down Expand Up @@ -194,7 +195,7 @@ private void mergeAppNamespaces(List<AppNamespace> appNamespaces) {

//for those updated or deleted app namespaces
private void updateAndDeleteCache() {
List<Long> ids = Lists.newArrayList(appNamespaceIdCache.keySet());
List<Long> ids = appNamespaceIdCache.keySet().stream().sorted().collect(Collectors.toList());
if (CollectionUtils.isEmpty(ids)) {
return;
}
Expand Down

0 comments on commit a632cc1

Please sign in to comment.