From 673cad55aab8f3fa39af6374a67315919656ff8d Mon Sep 17 00:00:00 2001 From: Masashi Katsumata Date: Mon, 26 Oct 2026 22:09:15 -0700 Subject: [PATCH] Expect this library's own test package in ExampleInstrumentedTest The template was copied from android-for-googlemaps and still expected com.mapconductor.googlemaps, so connectedAndroidTest always failed here. A library's instrumented tests run in its test APK, whose package is com.mapconductor.mapbox.test. --- .../java/com/mapconductor/mapbox/ExampleInstrumentedTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/androidTest/java/com/mapconductor/mapbox/ExampleInstrumentedTest.kt b/src/androidTest/java/com/mapconductor/mapbox/ExampleInstrumentedTest.kt index dc43fd6..f6941f2 100644 --- a/src/androidTest/java/com/mapconductor/mapbox/ExampleInstrumentedTest.kt +++ b/src/androidTest/java/com/mapconductor/mapbox/ExampleInstrumentedTest.kt @@ -17,6 +17,6 @@ class ExampleInstrumentedTest { fun useAppContext() { // Context of the app under test. val appContext = InstrumentationRegistry.getInstrumentation().targetContext - assertEquals("com.mapconductor.googlemaps", appContext.packageName) + assertEquals("com.mapconductor.mapbox.test", appContext.packageName) } }