From e4457cfec15432c815f92c917922a941571c38d0 Mon Sep 17 00:00:00 2001 From: Jason Ross Date: Sat, 4 Jul 2026 03:53:46 -0500 Subject: [PATCH] test(db): expect schema v20 in encryption round-trip after v19->v20 bump MIGRATION_19_20 (issue #187) bumped the Room cache schema to version 20, but DatabaseEncryptionTest.schemaVersionIsCarriedOntoTheEncryptedFile still asserted the plaintext -> encrypted conversion carried version 19, so it failed across all E2E levels after the rebase onto main. DatabaseEncryption.migrate() carries PRAGMA user_version dynamically (userVersion = source.version -> target.version = userVersion), and a fresh Room open now stamps 20, so v20 genuinely survives the conversion. Update the expected constant to 20; the assertion's intent (the version survives the round-trip) is unchanged. Co-Authored-By: Claude Opus 4.8 --- .../kotlin/org/libremail/data/local/DatabaseEncryptionTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/androidTest/kotlin/org/libremail/data/local/DatabaseEncryptionTest.kt b/app/src/androidTest/kotlin/org/libremail/data/local/DatabaseEncryptionTest.kt index 53609ee..50296c7 100644 --- a/app/src/androidTest/kotlin/org/libremail/data/local/DatabaseEncryptionTest.kt +++ b/app/src/androidTest/kotlin/org/libremail/data/local/DatabaseEncryptionTest.kt @@ -147,7 +147,7 @@ class DatabaseEncryptionTest { } finally { encrypted.close() } - assertEquals("Room's schema version must survive the plaintext -> encrypted conversion", 19, version) + assertEquals("Room's schema version must survive the plaintext -> encrypted conversion", 20, version) } private fun openPlaintext(): LibreMailDatabase =