From fa617d3fdc5ad5ac858720fa90df1d443e0840d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=E2=80=9CCLOVIS=E2=80=9D=20Canet?= Date: Tue, 8 Sep 2026 19:30:48 +0200 Subject: [PATCH] test: When searching for the connectionString, wait until each client is properly disposed of --- test/src/commonMain/kotlin/Entrypoint.kt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/src/commonMain/kotlin/Entrypoint.kt b/test/src/commonMain/kotlin/Entrypoint.kt index 2b3920bf..bdd6ec76 100644 --- a/test/src/commonMain/kotlin/Entrypoint.kt +++ b/test/src/commonMain/kotlin/Entrypoint.kt @@ -59,10 +59,13 @@ fun SuiteDsl.verifyClient( "mongodb://mongo:27017", // CI ) - coroutineScope { - candidates - .first { verifyClientConnected { createClient(it, currentCoroutineContext()) } } - } + candidates + .first { + coroutineScope { + println("Attempting to connect to $it") + verifyClientConnected { createClient(it, currentCoroutineContext()) } + } + } } test("Can connect to the database") { -- 2.51.2