summaryrefslogtreecommitdiff
path: root/test/parallel/test-net-socket-destroy-twice.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-net-socket-destroy-twice.js')
-rw-r--r--test/parallel/test-net-socket-destroy-twice.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-net-socket-destroy-twice.js b/test/parallel/test-net-socket-destroy-twice.js
index be82d9f2a6..998ad05a1d 100644
--- a/test/parallel/test-net-socket-destroy-twice.js
+++ b/test/parallel/test-net-socket-destroy-twice.js
@@ -2,7 +2,7 @@
const common = require('../common');
const net = require('net');
-var conn = net.createConnection(common.PORT);
+const conn = net.createConnection(common.PORT);
conn.on('error', common.mustCall(function() {
conn.destroy();