diff --git a/src/test/kotlin/eventDemo/Helpers.kt b/src/test/kotlin/eventDemo/Helpers.kt index 83701ad..7feb9bc 100644 --- a/src/test/kotlin/eventDemo/Helpers.kt +++ b/src/test/kotlin/eventDemo/Helpers.kt @@ -41,11 +41,14 @@ suspend fun testApplicationWithConfig(block: suspend ApplicationTestBuilder.(koi } fun DataSource.cleanEventSource() { - this.connection.prepareStatement( - """ - truncate event_stream; - """.trimIndent(), - ) + this.connection + .prepareStatement( + """ + truncate event_stream; + """.trimIndent(), + ).use { + it.execute() + } } fun UnifiedJedis.cleanProjections() {