CLOVIS
06/05/2024, 7:43 AMStandardTestDispatcher
in a single test. Why would you want to do this?Sam
06/05/2024, 8:15 AMSam
06/05/2024, 8:16 AMif (currentDispatcher == dispatcher1) {
doOneThing()
} else {
doSomeOtherThing()
}
Sam
06/05/2024, 8:16 AMCLOVIS
06/05/2024, 8:26 AMrunTest
is single-threaded?)Sam
06/05/2024, 8:34 AMTestCoroutineScheduler
, which is what contains the event loop. The runTest
function just grabs the scheduler from the TestScope
and runs its event loop.Sam
06/05/2024, 8:35 AMrunTest
function for it to actually start running anything.CLOVIS
06/05/2024, 9:24 AMSam
06/05/2024, 9:26 AM