Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb02b243 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

Fix Kosmos.runTest function with Kotlin 2

Change-Id: I26fa3523ee528ef9981a1828f7f43a8a2d5b574f
Fixes: 383387067
Flag: EXEMPT studio change
Test: Run unit test in SysUI studio
parent 0959be77
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ var Kosmos.brightnessWarningToast: BrightnessWarningToast by
 * that kosmos instance
 */
fun Kosmos.runTest(testBody: suspend Kosmos.() -> Unit) =
    testScope.runTest { this@runTest.testBody() }
    testScope.runTest testBody@{ this@runTest.testBody() }

fun Kosmos.runCurrent() = testScope.runCurrent()