summaryrefslogtreecommitdiff
path: root/test/async-hooks/test-graph.pipeconnect.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/async-hooks/test-graph.pipeconnect.js')
-rw-r--r--test/async-hooks/test-graph.pipeconnect.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/async-hooks/test-graph.pipeconnect.js b/test/async-hooks/test-graph.pipeconnect.js
index 03d2902c83..440ea906a1 100644
--- a/test/async-hooks/test-graph.pipeconnect.js
+++ b/test/async-hooks/test-graph.pipeconnect.js
@@ -12,9 +12,9 @@ tmpdir.refresh();
const hooks = initHooks();
hooks.enable();
-net.createServer(function(c) {
+const server = net.createServer((c) => {
c.end();
- this.close();
+ server.close();
}).listen(common.PIPE, common.mustCall(onlisten));
function onlisten() {