fix(sqlite): lock before ownership validation

This commit is contained in:
Hypatia May
2026-07-24 11:20:47 +08:00
parent e54a4ad986
commit dc2ea3a1b4
2 changed files with 23 additions and 20 deletions

View File

@@ -428,6 +428,7 @@ describe('SessionPersistenceSqlite: durability and crash semantics', () => {
expect(unchanged.prepare('PRAGMA application_id').get())
.toEqual({ application_id: SESSION_PERSISTENCE_SQLITE_APPLICATION_ID })
expect(unchanged.prepare('PRAGMA user_version').get()).toEqual({ user_version: SCHEMA_VERSION })
expect(unchanged.prepare('PRAGMA journal_mode').get()).toEqual({ journal_mode: 'delete' })
unchanged.close()
})