From 1b881bfbda1542c99db2a5b3287f03447a109a9f Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Sat, 26 Sep 2026 02:43:42 +0000 Subject: [PATCH] test: use Database in sqlite virtual table test The sqlite classes were renamed from DatabaseSync to Database. The file now imports only `Database`, but the "closes the iterator when a filter is reapplied to the cursor" test landed with a leftover `new DatabaseSync()` call, which throws a ReferenceError. Signed-off-by: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> --- test/parallel/test-sqlite-virtual-table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-sqlite-virtual-table.js b/test/parallel/test-sqlite-virtual-table.js index c7607beba14..4dc421618fd 100644 --- a/test/parallel/test-sqlite-virtual-table.js +++ b/test/parallel/test-sqlite-virtual-table.js @@ -561,7 +561,7 @@ suite('Database.prototype.createModule()', () => { test('closes the iterator when a filter is reapplied to the cursor', () => { // A correlated subquery re-invokes xFilter on the same cursor per outer // row, abandoning the previous iterator; its `finally` must still run. - const db = new DatabaseSync(':memory:'); + const db = new Database(':memory:'); const cleanedUp = []; db.createModule('refilter_cleanup', {