From e08ba063d8d142a80373584bbede16e6e8555e2d Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 2 Mar 2026 14:53:56 +0000 Subject: [PATCH] test(android): fix GatewaySessionInvokeTest coroutine job typing (#31594) --- .../ai/openclaw/android/gateway/GatewaySessionInvokeTest.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/android/app/src/test/java/ai/openclaw/android/gateway/GatewaySessionInvokeTest.kt b/apps/android/app/src/test/java/ai/openclaw/android/gateway/GatewaySessionInvokeTest.kt index 46717210424..03930ee2a8b 100644 --- a/apps/android/app/src/test/java/ai/openclaw/android/gateway/GatewaySessionInvokeTest.kt +++ b/apps/android/app/src/test/java/ai/openclaw/android/gateway/GatewaySessionInvokeTest.kt @@ -3,6 +3,7 @@ package ai.openclaw.android.gateway import kotlinx.coroutines.CompletableDeferred import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.Job import kotlinx.coroutines.SupervisorJob import kotlinx.coroutines.cancelAndJoin import kotlinx.coroutines.runBlocking @@ -44,7 +45,7 @@ private class InMemoryDeviceAuthStore : DeviceAuthTokenStore { private data class NodeHarness( val session: GatewaySession, - val sessionJob: SupervisorJob, + val sessionJob: Job, ) private data class InvokeScenarioResult( @@ -86,7 +87,7 @@ class GatewaySessionInvokeTest { val result = runInvokeScenario( invokeEventFrame = - """{"type":"event","event":"node.invoke.request","payload":{"id":"invoke-2","nodeId":"node-2","command":"debug.raw","paramsJSON":"{\\"raw\\":true}","params":{"ignored":1},"timeoutMs":5000}}""", + """{"type":"event","event":"node.invoke.request","payload":{"id":"invoke-2","nodeId":"node-2","command":"debug.raw","paramsJSON":"{\"raw\":true}","params":{"ignored":1},"timeoutMs":5000}}""", ) { GatewaySession.InvokeResult.ok("""{"handled":true}""") }