From 0e63cad0322516889b062ddbcaa0d6992eafd80f Mon Sep 17 00:00:00 2001 From: JaniruTEC <52893617+JaniruTEC@users.noreply.github.com> Date: Sun, 21 Apr 2024 15:57:19 +0200 Subject: [PATCH] Applied fix for #529 [1] to re-enabled tests See: b3449f07510fc86203e6b3ded5cfe3ff72902b01 Also See: c13b12ffc8d441f344793f2436506974b145899f *This commit is related to issue #529 [1]* [1] https://github.com/cryptomator/android/issues/529 --- .../java/org/cryptomator/data/db/UpgradeDatabaseTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/src/androidTest/java/org/cryptomator/data/db/UpgradeDatabaseTest.kt b/data/src/androidTest/java/org/cryptomator/data/db/UpgradeDatabaseTest.kt index 51d1feb24..017097805 100644 --- a/data/src/androidTest/java/org/cryptomator/data/db/UpgradeDatabaseTest.kt +++ b/data/src/androidTest/java/org/cryptomator/data/db/UpgradeDatabaseTest.kt @@ -13,6 +13,7 @@ import androidx.test.platform.app.InstrumentationRegistry import com.google.common.base.Optional import org.cryptomator.data.db.CryptomatorAssert.assertCursorEquals import org.cryptomator.data.db.CryptomatorAssert.assertIsUUID +import org.cryptomator.data.db.SQLiteCacheControl.asCacheControlled import org.cryptomator.data.db.migrations.Sql import org.cryptomator.data.db.migrations.legacy.Upgrade10To11 import org.cryptomator.data.db.migrations.legacy.Upgrade11To12 @@ -93,7 +94,7 @@ class UpgradeDatabaseTest { assertEquals(1, oldVersion) assertEquals(LATEST_LEGACY_MIGRATION, newVersion) } - }).let { FrameworkSQLiteOpenHelperFactory().create(it).writableDatabase } + }).let { FrameworkSQLiteOpenHelperFactory().asCacheControlled().create(it).writableDatabase } } @After