klimchuk daniil
11/30/2023, 5:00 PMGiven("x") {
testScope.launch {
1 + 1
}
testScope.testCoroutineScheduler.advanceUntilIdle()
}
Is this api supported or am i misusing it?Wesley Hartford
11/30/2023, 5:44 PMFunSpec
style, but it looks something like this:
test("using test scheduler").config(coroutineTestScope = true) {
testCoroutineScheduler.advanceUntilIdle()
}
Wesley Hartford
11/30/2023, 5:45 PMklimchuk daniil
12/01/2023, 7:46 PMinternal class Test : BehaviorSpec({
coroutineTestScope = true
Given("X") {
...
}
}