Dmitry Khalanskiy [JB]
05/12/2023, 3:56 PMyschimke
05/12/2023, 4:13 PMyschimke
05/12/2023, 4:13 PMThe binary compatibility of the experimental overload ofis restored (#3673)runTest
Dmitry Khalanskiy [JB]
05/15/2023, 10:48 AMrunTest
. Maybe your test takes longer than 10 seconds. Try passing some other timeout value to runTest
, like runTest(Duration.INFINITE) { }
, or runTest(30.seconds) { }
, etc.Javier
05/15/2023, 12:32 PMDmitry Khalanskiy [JB]
05/15/2023, 12:35 PMJavier
05/15/2023, 12:42 PMJavier
05/15/2023, 12:43 PMJavier
05/15/2023, 12:44 PMDmitry Khalanskiy [JB]
05/15/2023, 12:47 PMIs it possible to change the timeout globally?Not at the moment. You could do something like
fun runTestNoTimeout(block: suspend TestScope.() -> Unit): Unit = runTest(Duration.INFINITE, block)
and just use runTestNoTimeout
throughout your codebase. If you don't like this solution, please file an issue at https://github.com/Kotlin/kotlinx.coroutines/issues with the feature request for a global setting.Javier
05/15/2023, 12:48 PMjuliocbcotta
06/08/2023, 10:48 AM