Dmitry Khalanskiy [JB]
05/12/2023, 3:56 PMyschimke
05/12/2023, 4:13 PMThe binary compatibility of the experimental overload ofis restored (#3673)runTest
Javier
05/15/2023, 10:44 AMkotlinx.coroutines.test.UncompletedCoroutinesError at null:-1
but only on linux x64 after upgrading to 1.7.1.
Is anyone seeing it too?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 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 PM