diff --git a/app/src/test/java/com/stevesoltys/seedvault/metadata/MetadataManagerTest.kt b/app/src/test/java/com/stevesoltys/seedvault/metadata/MetadataManagerTest.kt index b9844d9ee..fc289249e 100644 --- a/app/src/test/java/com/stevesoltys/seedvault/metadata/MetadataManagerTest.kt +++ b/app/src/test/java/com/stevesoltys/seedvault/metadata/MetadataManagerTest.kt @@ -57,6 +57,7 @@ import kotlin.random.Random @Suppress("DEPRECATION") @RunWith(AndroidJUnit4::class) @Config( + sdk = [34], // TODO: Drop once robolectric supports 35 application = TestApp::class ) class MetadataManagerTest { diff --git a/app/src/test/java/com/stevesoltys/seedvault/plugins/saf/DocumentFileTest.kt b/app/src/test/java/com/stevesoltys/seedvault/plugins/saf/DocumentFileTest.kt index 2aead4e65..b29e82ceb 100644 --- a/app/src/test/java/com/stevesoltys/seedvault/plugins/saf/DocumentFileTest.kt +++ b/app/src/test/java/com/stevesoltys/seedvault/plugins/saf/DocumentFileTest.kt @@ -24,6 +24,7 @@ import org.robolectric.annotation.Config @RunWith(AndroidJUnit4::class) @Config( + sdk = [34], // TODO: Drop once robolectric supports 35 application = TestApp::class ) internal class DocumentFileTest { diff --git a/app/src/test/java/com/stevesoltys/seedvault/plugins/webdav/WebDavStoragePluginTest.kt b/app/src/test/java/com/stevesoltys/seedvault/plugins/webdav/WebDavStoragePluginTest.kt index 8472fe5a7..c5389a4a5 100644 --- a/app/src/test/java/com/stevesoltys/seedvault/plugins/webdav/WebDavStoragePluginTest.kt +++ b/app/src/test/java/com/stevesoltys/seedvault/plugins/webdav/WebDavStoragePluginTest.kt @@ -28,6 +28,7 @@ import kotlin.random.Random @RunWith(AndroidJUnit4::class) @Config( + sdk = [34], // TODO: Drop once robolectric supports 35 application = TestApp::class ) internal class WebDavStoragePluginTest : TransportTest() { diff --git a/app/src/test/java/com/stevesoltys/seedvault/restore/AppSelectionManagerTest.kt b/app/src/test/java/com/stevesoltys/seedvault/restore/AppSelectionManagerTest.kt index 5333c1f98..d6c85b575 100644 --- a/app/src/test/java/com/stevesoltys/seedvault/restore/AppSelectionManagerTest.kt +++ b/app/src/test/java/com/stevesoltys/seedvault/restore/AppSelectionManagerTest.kt @@ -35,12 +35,16 @@ import org.junit.jupiter.api.Assertions.assertNull import org.junit.jupiter.api.Assertions.assertTrue import org.junit.jupiter.api.Assertions.fail import org.junit.runner.RunWith +import org.robolectric.annotation.Config import java.io.ByteArrayInputStream import java.io.IOException import kotlin.random.Random @RunWith(AndroidJUnit4::class) @OptIn(ExperimentalCoroutinesApi::class) +@Config( + sdk = [34] // TODO: Drop once robolectric supports 35 +) internal class AppSelectionManagerTest : TransportTest() { private val storagePluginManager: StoragePluginManager = mockk() diff --git a/app/src/test/java/com/stevesoltys/seedvault/restore/install/DeviceInfoTest.kt b/app/src/test/java/com/stevesoltys/seedvault/restore/install/DeviceInfoTest.kt index 66d36c788..ce9f5fa9e 100644 --- a/app/src/test/java/com/stevesoltys/seedvault/restore/install/DeviceInfoTest.kt +++ b/app/src/test/java/com/stevesoltys/seedvault/restore/install/DeviceInfoTest.kt @@ -27,6 +27,7 @@ import kotlin.random.Random @RunWith(AndroidJUnit4::class) @Config( + sdk = [34], // TODO: Drop once robolectric supports 35 application = TestApp::class ) internal class DeviceInfoTest {