summaryrefslogtreecommitdiff
path: root/test/parallel/test-finalization-group-error.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-finalization-group-error.js')
-rw-r--r--test/parallel/test-finalization-group-error.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/parallel/test-finalization-group-error.js b/test/parallel/test-finalization-group-error.js
index 0754370f2d..0685811f55 100644
--- a/test/parallel/test-finalization-group-error.js
+++ b/test/parallel/test-finalization-group-error.js
@@ -18,6 +18,10 @@ setTimeout(() => {
name: 'Error',
message: 'test',
});
+
+ // Give the callbacks scheduled by global.gc() time to run, as the underlying
+ // uv_async_t is unref’ed.
+ setTimeout(() => {}, 200);
}, 200);
process.on('uncaughtException', common.mustCall());