File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/commonTest/kotlin/org/hildan/chrome/devtools Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import kotlinx.coroutines.plus
77import kotlinx.coroutines.test.runTest
88import kotlinx.coroutines.withContext
99import kotlin.coroutines.CoroutineContext
10+ import kotlin.time.Duration.Companion.minutes
1011
1112interface RealTimeTestScope : CoroutineScope {
1213 val backgroundScope: CoroutineScope
@@ -18,7 +19,7 @@ interface RealTimeTestScope : CoroutineScope {
1819fun runTestWithRealTime (
1920 nestedContext : CoroutineContext = Dispatchers .Default ,
2021 block : suspend RealTimeTestScope .() -> Unit ,
21- ) = runTest {
22+ ) = runTest(timeout = 3 .minutes) { // increased timeout for local server setup
2223 val testScopeBackground = backgroundScope + CoroutineExceptionHandler { _, e ->
2324 println (" Error in background scope: $e " )
2425 }
You can’t perform that action at this time.
0 commit comments