Add jdbc connection autocommit=false property to mock configuration for integration tests. (#338)

'autocommit=false' is set now in NodeConfiguration (0c017fdfec).  Add the setting ('autocommit=false') to mock services used in integration tests.
This commit is contained in:
szymonsztuka 2018-01-11 18:03:28 +00:00 committed by GitHub
parent d6235cb937
commit 671f221451
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}