10 lines
284 B
Kotlin
10 lines
284 B
Kotlin
|
package com.insanusmokrassar.krontab.utils
|
||
|
|
||
|
import kotlinx.coroutines.CoroutineScope
|
||
|
import kotlinx.coroutines.runBlocking
|
||
|
|
||
|
/**
|
||
|
* Workaround to use suspending functions in unit tests
|
||
|
*/
|
||
|
actual fun runTest(block: suspend (scope: CoroutineScope) -> Unit) = runBlocking(block = block)
|