Skip to content

Commit 66ed4fe

Browse files
committed
Remove system property dependency from MockBeanContextCachingTests
Now this test can be run regardless of the 'spring.test.context.cache.maxSize' system property value. See gh-38236
1 parent 8fc59e3 commit 66ed4fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanContextCachingTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
*/
4646
class MockBeanContextCachingTests {
4747

48-
private final DefaultContextCache contextCache = new DefaultContextCache();
48+
private final DefaultContextCache contextCache = new DefaultContextCache(2);
4949

5050
private final DefaultCacheAwareContextLoaderDelegate delegate = new DefaultCacheAwareContextLoaderDelegate(
5151
this.contextCache);

0 commit comments

Comments
 (0)