mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
test(integration): clear the host-wide off-host tables between tests
The purge requests and the off-host key-use ledger are not keyed to a user, so truncating users never reached them. A file that reads them whole, the purge job or the encryption status view, saw rows earlier files had left and failed in a full serial run.
This commit is contained in:
1 parent
f4b9d8a0e1
commit
1bf84149f8
1 file changed
+5
@@ -63,6 +63,11 @@ export async function truncateAllTables(client: PrismaClient): Promise<void> {
|
||||
"mood_entries",
|
||||
"notification_channels",
|
||||
"notification_preferences",
|
||||
// Host-wide off-host backup state: not keyed to a user, so the users
|
||||
// cascade does not reach it, and a file that reads it whole (the purge
|
||||
// job, the encryption view) saw what earlier files left behind.
|
||||
"offhost_backup_key_use",
|
||||
"offhost_purge_requests",
|
||||
"passkeys",
|
||||
"personal_records",
|
||||
"push_subscriptions",
|
||||
|
||||
Reference in new issue
Block a user