From 90d08cf40836e77b15eec2bcffac0e35e6a09e88 Mon Sep 17 00:00:00 2001 From: Gijs van Veen Date: Tue, 26 Sep 2023 16:30:14 +0200 Subject: [PATCH] Raise await DB connection --- .../src/jsTest/kotlin/dev/gitlive/firebase/database/database.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firebase-database/src/jsTest/kotlin/dev/gitlive/firebase/database/database.kt b/firebase-database/src/jsTest/kotlin/dev/gitlive/firebase/database/database.kt index dbb582e69..7102c1a8e 100644 --- a/firebase-database/src/jsTest/kotlin/dev/gitlive/firebase/database/database.kt +++ b/firebase-database/src/jsTest/kotlin/dev/gitlive/firebase/database/database.kt @@ -24,7 +24,7 @@ actual fun runTest(test: suspend () -> Unit) = kotlinx.coroutines.test.runTest(t actual annotation class IgnoreForAndroidUnitTest private suspend fun awaitDatabaseConnection() = withContext(Dispatchers.Default) { - withTimeout(5.seconds) { + withTimeout(2.minutes) { Firebase.database.reference(".info/connected").valueEvents.first { it.value() } } }