Skip to content

Commit

Permalink
fix(接口定义): 修复开源版本不能执行接口测试的缺陷
Browse files Browse the repository at this point in the history
  • Loading branch information
wxg0103 authored and fit2-zhao committed Jul 6, 2023
1 parent ac1bd09 commit 6432dca
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -94,9 +94,13 @@ public void verifyPool(String projectId, RunModeConfigDTO runConfig) {
List<TestResourcePoolDTO> poolList = systemParameterService.getTestResourcePool();

QuotaService baseQuotaService = CommonBeanFactory.getBean(QuotaService.class);
Set<String> poolSets = baseQuotaService.getQuotaResourcePools();
Set<String> poolSets = null;
if (baseQuotaService != null) {
poolSets = baseQuotaService.getQuotaResourcePools();
}
if (CollectionUtils.isNotEmpty(poolSets)) {
poolList = poolList.stream().filter(pool -> poolSets.contains(pool.getId())).collect(Collectors.toList());
Set<String> finalPoolSets = poolSets;
poolList = poolList.stream().filter(pool -> finalPoolSets.contains(pool.getId())).collect(Collectors.toList());
}

if (CollectionUtils.isEmpty(poolList)) {
Expand Down

0 comments on commit 6432dca

Please sign in to comment.