mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:03:22 +08:00
Disable unexpected datasource initialization
This commit restore the disabling of datasource initialization that was
accidently removed in db33a75
so that other tests aren't affected by it.
This commit is contained in:
parent
0163731043
commit
5cc2e103f2
@ -69,7 +69,8 @@ public class TransactionAutoConfigurationTests {
|
||||
@Test
|
||||
public void singleTransactionManager() {
|
||||
load(new Class<?>[] { DataSourceAutoConfiguration.class,
|
||||
DataSourceTransactionManagerAutoConfiguration.class });
|
||||
DataSourceTransactionManagerAutoConfiguration.class },
|
||||
"spring.datasource.initialize:false");
|
||||
PlatformTransactionManager transactionManager = this.context
|
||||
.getBean(PlatformTransactionManager.class);
|
||||
TransactionTemplate transactionTemplate = this.context
|
||||
|
Loading…
Reference in New Issue
Block a user