test: keep finalization close fixture ref alive · nodejs/node@570952d · GitHub
Skip to content

Commit 570952d

Browse files
trivikrrichardlau
authored andcommitted
test: keep finalization close fixture ref alive
The close fixture expects the registered object to still be reachable when the process emits exit. Keep a strong reference outside setup() so the assertion does not depend on platform-specific GC timing. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5 PR-URL: #64085 Refs: https://github.com/nodejs/reliability/issues?q=%22test-process-finalization%22 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day> Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
1 parent 39e0c14 commit 570952d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/fixtures/process/close.mjs

Lines changed: 4 additions & 1 deletion

0 commit comments

Comments
 (0)