Skip to content

Commit 2bb6e14

Browse files
Update test/parallel/test-sqlite-backup.mjs
Co-authored-by: Edy Silva <[email protected]>
1 parent a30f3ca commit 2bb6e14

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

test/parallel/test-sqlite-backup.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,10 @@ test('source database is kept alive while a backup is in flight', async (t) => {
341341
// Nudge the GC aggressively, but the backup must keep the source alive
342342
// regardless. Without the fix, the source DatabaseSync would be collected
343343
// and BackupJob::Finalize() would crash the process.
344-
if (typeof global.gc === 'function') {
345344
for (let i = 0; i < 5; i++) {
346345
global.gc();
347346
await new Promise((resolve) => setImmediate(resolve));
348347
}
349-
}
350348

351349
const totalPages = await p;
352350
t.assert.ok(totalPages > 0);

0 commit comments

Comments
 (0)