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

Commit e8a6b5f8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix Kosmos.runTest function with Kotlin 2" into main

parents 3e9fcd25 eb02b243
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()