runTest
Utility method that executes the given block with optional before and after blocks and disables the skipDelay behaviour from the coroutines runTest
. Our tests use delay() in some situations.
fun runTest(before: suspend CoroutineScope.() -> Unit = {}, after: suspend CoroutineScope.() -> Unit = {}, block: suspend CoroutineScope.() -> Unit): TestResult
We should probably deprecate this overload and remove the before/after state and lateinit variables in various tests.There are 150 instances of it though, so I'm not pushing the deprecation button just yet.