File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
androidTest/kotlin/com/adamratzman/spotify
desktopTest/kotlin/com.adamratzman.spotify
nativeDarwinTest/kotlin/com.adamratzman.spotify Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public actual fun Exception.stackTrace() {
28
28
this .printStackTrace()
29
29
}
30
30
31
- public actual val testCoroutineContext: CoroutineContext =
31
+ public val testCoroutineContext: CoroutineContext =
32
32
Executors .newSingleThreadExecutor().asCoroutineDispatcher()
33
33
34
34
public actual fun runBlockingTest (block : suspend CoroutineScope .() -> Unit ): Unit = runBlocking(testCoroutineContext) { this .block() }
Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ actual fun getEnvironmentVariable(name: String): String? {
14
14
15
15
actual fun Exception.stackTrace () = printStackTrace()
16
16
17
- actual val testCoroutineContext: CoroutineContext = MainScope ().coroutineContext
17
+ val testCoroutineContext: CoroutineContext = MainScope ().coroutineContext
18
18
actual fun runBlockingTest (block : suspend CoroutineScope .() -> Unit ) =
19
19
runBlocking { block() }
Original file line number Diff line number Diff line change @@ -14,6 +14,5 @@ actual fun getEnvironmentVariable(name: String): String? {
14
14
15
15
actual fun Exception.stackTrace () = printStackTrace()
16
16
17
- actual val testCoroutineContext: CoroutineContext = MainScope ().coroutineContext
18
17
actual fun runBlockingTest (block : suspend CoroutineScope .() -> Unit ) =
19
18
runBlocking { block() }
You can’t perform that action at this time.
0 commit comments