Skip to content

Commit 8cf918c

Browse files
committed
Close context once
1 parent 4a82612 commit 8cf918c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/setup-open.ts

-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ export function setupOpen(QuickSQLite: ISQLite) {
122122
closeContextLock(dbName, id);
123123
resolve(res)
124124
} catch (ex) {
125-
closeContextLock(dbName, id);
126125
reject(ex)
127126
} finally {
128127
hooks?.lockReleased?.()

tests/tests/sqlite/rawQueries.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,8 @@ export function registerBaseTests() {
607607
await db.execute('PRAGMA wal_checkpoint(RESTART)');
608608
let end = performance.now();
609609
let duration = end - start;
610-
console.log(`10000 INSERTs :: ${duration}ms`);
610+
611+
expect(duration).lessThan(2000);
611612
});
612613
});
613614
}

0 commit comments

Comments
 (0)