From 671f22145184d97921cae1a65b7b1bcbcfd66c02 Mon Sep 17 00:00:00 2001 From: szymonsztuka Date: Thu, 11 Jan 2018 18:03:28 +0000 Subject: [PATCH] Add jdbc connection autocommit=false property to mock configuration for integration tests. (#338) 'autocommit=false' is set now in NodeConfiguration (https://github.com/corda/enterprise/commit/0c017fdfeca92e47dc44eed250a25586889c5b84). Add the setting ('autocommit=false') to mock services used in integration tests. --- .../src/main/kotlin/net/corda/testing/node/MockServices.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/testing/node-driver/src/main/kotlin/net/corda/testing/node/MockServices.kt b/testing/node-driver/src/main/kotlin/net/corda/testing/node/MockServices.kt index 8a6cf3abe0..f506369e84 100644 --- a/testing/node-driver/src/main/kotlin/net/corda/testing/node/MockServices.kt +++ b/testing/node-driver/src/main/kotlin/net/corda/testing/node/MockServices.kt @@ -93,6 +93,7 @@ open class MockServices private constructor( props.setProperty("dataSource.url", config.getString("dataSourceProperties.dataSource.url")) props.setProperty("dataSource.user", config.getString("dataSourceProperties.dataSource.user")) props.setProperty("dataSource.password", config.getString("dataSourceProperties.dataSource.password")) + props["autoCommit"] = false return props }