Caused by: kotlinx.coroutines.TimeoutCancellationException: Timed out after 10m of _virtual_ (kotlinx.coroutines.test) time. To use the real time, wrap 'withTimeout' in 'withContext(Dispatchers.Default.limitedParallelism(1))'
I was wondering why
limitedParallelism(1)
is necessary, and how my test would behave without it?
Thanks.
e
ephemient
09/11/2023, 6:12 PM
test dispatcher is single-threaded for repeatable tests. if you don't care about that, you don't need