mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
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
This commit is contained in:
parent
8fc59e3367
commit
66ed4fe519
@ -45,7 +45,7 @@ import static org.mockito.Mockito.mock;
|
||||
*/
|
||||
class MockBeanContextCachingTests {
|
||||
|
||||
private final DefaultContextCache contextCache = new DefaultContextCache();
|
||||
private final DefaultContextCache contextCache = new DefaultContextCache(2);
|
||||
|
||||
private final DefaultCacheAwareContextLoaderDelegate delegate = new DefaultCacheAwareContextLoaderDelegate(
|
||||
this.contextCache);
|
||||
|
Loading…
Reference in New Issue
Block a user