diff --git a/test/js/node/test/parallel/test-abortcontroller.js b/test/js/node/test/parallel/test-abortcontroller.js index 71fb74de09..ab99cdc75c 100644 --- a/test/js/node/test/parallel/test-abortcontroller.js +++ b/test/js/node/test/parallel/test-abortcontroller.js @@ -208,7 +208,11 @@ test('AbortSignal.timeout() does not prevent the signal from being collected', a } await sleep(10); - globalThis.gc(); + if(typeof Bun !== "undefined") { + Bun.gc(true); + }else{ + globalThis.gc(); + } strictEqual(ref.deref(), undefined); });