From b1d0081fb7328e2014f3d2e1c99a25775ff7b3fd Mon Sep 17 00:00:00 2001 From: johan12345 Date: Tue, 26 Sep 2023 17:47:03 +0200 Subject: [PATCH] re-enable CarAppTest see https://github.com/robolectric/robolectric/issues/8404#issuecomment-1733309468 --- app/src/testGoogle/java/net/vonforst/evmap/auto/CarAppTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/testGoogle/java/net/vonforst/evmap/auto/CarAppTest.kt b/app/src/testGoogle/java/net/vonforst/evmap/auto/CarAppTest.kt index e627196b..ca5bbd44 100644 --- a/app/src/testGoogle/java/net/vonforst/evmap/auto/CarAppTest.kt +++ b/app/src/testGoogle/java/net/vonforst/evmap/auto/CarAppTest.kt @@ -15,11 +15,12 @@ import org.junit.Test import org.junit.runner.RunWith import org.robolectric.Robolectric import org.robolectric.RobolectricTestRunner +import org.robolectric.annotation.Config import org.robolectric.annotation.internal.DoNotInstrument @RunWith(RobolectricTestRunner::class) @DoNotInstrument -@Ignore("Disabled because Robolectric does not yet support API 34") +@Config(sdk = [33]) // Robolectric does not yet support SDK 34 class CarAppTest { private val testCarContext = TestCarContext.createCarContext(ApplicationProvider.getApplicationContext()).apply {