Hello, I started playing around with the 1.0.0-bet...
# exposed
a
Hello, I started playing around with the 1.0.0-beta and the r2dbc support, adding some tests to a existing project so we can soon switch over. I now started seeing these errors and I’m wondering if it’s generally discouraged to mix jdbc & r2dbc in one project or if it’s just a bad test setup, since the errors only appear for the whole test-suite but not for the test-classes in isolation. Maybe someone has some insights on this.
Copy code
12:14:21.307 [Test worker @kotlinx.coroutines.test runner#298] ERROR t.s.h.common.database.ExposedDB - Database operation threw: 
java.lang.ClassCastException: class org.jetbrains.exposed.v1.r2dbc.transactions.TransactionManager cannot be cast to class org.jetbrains.exposed.v1.jdbc.transactions.TransactionManager (org.jetbrains.exposed.v1.r2dbc.transactions.TransactionManager and org.jetbrains.exposed.v1.jdbc.transactions.TransactionManager are in unnamed module of loader 'app')
	at org.jetbrains.exposed.v1.jdbc.transactions.TransactionManager$Companion.getManager(TransactionManager.kt:162)
	at org.jetbrains.exposed.v1.jdbc.transactions.TransactionManager$Companion.managerFor(TransactionManager.kt:156)
	at org.jetbrains.exposed.v1.jdbc.transactions.JdbcTransactionInterfaceKt.getTransactionManager(JdbcTransactionInterface.kt:37)
	at org.jetbrains.exposed.v1.jdbc.transactions.TransactionManagerKt.keepAndRestoreTransactionRefAfterRun(TransactionManager.kt:470)
	at org.jetbrains.exposed.v1.jdbc.transactions.TransactionManagerKt.transaction(TransactionManager.kt:322)
	at org.jetbrains.exposed.v1.jdbc.transactions.TransactionManagerKt.transaction$default(TransactionManager.kt:317)