I use `runTest()` and I got this error: ```Caused ...
# coroutines
n
I use
runTest()
and I got this error:
Copy code
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
test dispatcher is single-threaded for repeatable tests. if you don't care about that, you don't need
limitedParallelism(1)
either
today i learned 1
🙏 1