Close SQLite probe handle after journalMode assertion
This commit is contained in:
@@ -423,7 +423,9 @@ describe('SessionPersistenceSqlite: edge cases', () => {
|
|||||||
const walPath = await freshDbPath()
|
const walPath = await freshDbPath()
|
||||||
const bWal = await backend(walPath)
|
const bWal = await backend(walPath)
|
||||||
await bWal.ctx.sessionPersistence.create(meta('jm-wal'))
|
await bWal.ctx.sessionPersistence.create(meta('jm-wal'))
|
||||||
expect((openDatabase(walPath, 'wal').prepare('PRAGMA journal_mode').get() as { journal_mode: string }).journal_mode).toBe('wal')
|
const probe = openDatabase(walPath, 'wal')
|
||||||
|
expect((probe.prepare('PRAGMA journal_mode').get() as { journal_mode: string }).journal_mode).toBe('wal')
|
||||||
|
probe.close()
|
||||||
await bWal.dispose()
|
await bWal.dispose()
|
||||||
|
|
||||||
const deletePath = await freshDbPath()
|
const deletePath = await freshDbPath()
|
||||||
|
|||||||
Reference in New Issue
Block a user