From 5cc2e103f2c0f8ac26ef1a125099ed41d1c64557 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 3 Apr 2017 10:42:12 +0300 Subject: [PATCH] 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. --- .../transaction/TransactionAutoConfigurationTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/transaction/TransactionAutoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/transaction/TransactionAutoConfigurationTests.java index 1e35808565..4177c09929 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/transaction/TransactionAutoConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/transaction/TransactionAutoConfigurationTests.java @@ -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