Skip to content

Commit

Permalink
Merge branch 'master' into springboot3
Browse files Browse the repository at this point in the history
  • Loading branch information
yanhom1314 committed Dec 30, 2023
2 parents cf2848a + eaef276 commit dffe62b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.cloud.context.environment.EnvironmentChangeEvent;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.MapPropertySource;
import org.springframework.core.env.MutablePropertySources;

Expand Down Expand Up @@ -55,7 +54,7 @@ private void mockEnvironmentChange() {
Map<String, Object> tmpMap = Maps.newHashMap();
tmpMap.put("spring.dynamic.tp.executors[0].threadPoolName", "dtpExecutor1");
tmpMap.put("spring.dynamic.tp.executors[0].corePoolSize", 10);
tmpMap.put("spring.dynamic.tp.executors[0].maxPoolSize", 20);
tmpMap.put("spring.dynamic.tp.executors[0].maximumPoolSize", 20);

propertySources.addFirst(new MapPropertySource("DtpCloudRefreshTestPropertySource", tmpMap));
Set<String> keys = Collections.singleton("spring.dynamic.tp.executors[0].corePoolSize");
Expand Down

0 comments on commit dffe62b

Please sign in to comment.