summaryrefslogtreecommitdiff
path: root/test/parallel/test-handle-wrap-isrefed-tty.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-handle-wrap-isrefed-tty.js')
-rw-r--r--test/parallel/test-handle-wrap-isrefed-tty.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-handle-wrap-isrefed-tty.js b/test/parallel/test-handle-wrap-isrefed-tty.js
index 4c31d63b52..c40a6b0913 100644
--- a/test/parallel/test-handle-wrap-isrefed-tty.js
+++ b/test/parallel/test-handle-wrap-isrefed-tty.js
@@ -19,7 +19,7 @@ if (process.argv[2] === 'child') {
assert(tty._handle.unrefed(), false);
tty.unref();
assert(tty._handle.unrefed(), true);
- tty._handle.close();
+ tty._handle.close(common.mustCall(() => assert(tty._handle.unrefed(), true)));
assert(tty._handle.unrefed(), true);
return;
}