Skip to content

Commit 1d8f9a2

Browse files
trivikraduh95
authored andcommitted
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> PR-URL: #66307 Refs: #65988 Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com>
1 parent 0bb9802 commit 1d8f9a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/parallel/test-sqlite-virtual-table.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ suite('DatabaseSync.prototype.createModule()', () => {
561561
test('closes the iterator when a filter is reapplied to the cursor', () => {
562562
// A correlated subquery re-invokes xFilter on the same cursor per outer
563563
// row, abandoning the previous iterator; its `finally` must still run.
564-
const db = new DatabaseSync(':memory:');
564+
const db = new Database(':memory:');
565565
const cleanedUp = [];
566566

567567
db.createModule('refilter_cleanup', {

0 commit comments

Comments
 (0)