From e659acd9b2e0982b0ee30a15fc0f24f2d019bfd9 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sun, 12 Jul 2026 12:57:24 +0200 Subject: [PATCH] test(android): remove invalid cold locale probe --- .../openclaw/app/NodeForegroundServiceTest.kt | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/apps/android/app/src/test/java/ai/openclaw/app/NodeForegroundServiceTest.kt b/apps/android/app/src/test/java/ai/openclaw/app/NodeForegroundServiceTest.kt index 184cd44cb059..9b4ae3430eff 100644 --- a/apps/android/app/src/test/java/ai/openclaw/app/NodeForegroundServiceTest.kt +++ b/apps/android/app/src/test/java/ai/openclaw/app/NodeForegroundServiceTest.kt @@ -1,7 +1,5 @@ package ai.openclaw.app -import ai.openclaw.app.i18n.NativeStringResources -import ai.openclaw.app.i18n.nativeString import android.app.Notification import android.app.Service import android.content.Context @@ -175,32 +173,6 @@ class NodeForegroundServiceTest { } } - @Test - @Config(sdk = [31, 32]) - fun coldServiceStartupUsesThePersistedAppLocaleWithoutAnActivity() { - val app = RuntimeEnvironment.getApplication() - val localesFile = "androidx.appcompat.app.AppCompatDelegate.application_locales_record_file" - app.openFileOutput(localesFile, Context.MODE_PRIVATE).bufferedWriter().use { writer -> - writer.write("""""") - } - NativeStringResources.install(app) - assertEquals("Démarrage…", nativeString("Starting…")) - val controller = Robolectric.buildService(NodeForegroundService::class.java) - - try { - controller.create() - - assertSame(app, controller.get().application) - assertTrue(app.getFileStreamPath(localesFile).exists()) - assertEquals("Démarrage…", nativeString("Starting…")) - val notification = Shadows.shadowOf(controller.get()).lastForegroundNotification - assertEquals("Démarrage…", notification.extras.getCharSequence(Notification.EXTRA_TEXT)) - } finally { - controller.destroy() - app.deleteFile(localesFile) - } - } - @Test fun backgroundRuntimeStartsWithoutForegroundCapabilitiesOrMicRestore() { val app = RuntimeEnvironment.getApplication()