summaryrefslogtreecommitdiff
path: root/test/parallel/test-tcp-wrap.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-tcp-wrap.js')
-rw-r--r--test/parallel/test-tcp-wrap.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/parallel/test-tcp-wrap.js b/test/parallel/test-tcp-wrap.js
index 18b8fe401f..6b9dbd90a4 100644
--- a/test/parallel/test-tcp-wrap.js
+++ b/test/parallel/test-tcp-wrap.js
@@ -1,18 +1,18 @@
'use strict';
require('../common');
-var assert = require('assert');
+const assert = require('assert');
-var TCP = process.binding('tcp_wrap').TCP;
-var uv = process.binding('uv');
+const TCP = process.binding('tcp_wrap').TCP;
+const uv = process.binding('uv');
-var handle = new TCP();
+const handle = new TCP();
// Should be able to bind to the port
-var err = handle.bind('0.0.0.0', 0);
+let err = handle.bind('0.0.0.0', 0);
assert.equal(err, 0);
// Should not be able to bind to the same port again
-var out = {};
+const out = {};
handle.getsockname(out);
err = handle.bind('0.0.0.0', out.port);
assert.equal(err, uv.UV_EINVAL);