summaryrefslogtreecommitdiff
path: root/test/sequential/test-net-GH-5504.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2016-12-30 18:38:06 -0500
committercjihrig <cjihrig@gmail.com>2017-01-02 18:28:18 -0500
commitff1efa60878d8353e1b8e36684a786bdf57963fb (patch)
tree31399a1732ff2b91374fdcaaf2d5d0976b6a00a7 /test/sequential/test-net-GH-5504.js
parent1605a2e02ae6887e57292543489c76eef5c545d0 (diff)
downloadnode-new-ff1efa60878d8353e1b8e36684a786bdf57963fb.tar.gz
test: use const for all require() calls
PR-URL: https://github.com/nodejs/node/pull/10550 Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/sequential/test-net-GH-5504.js')
-rw-r--r--test/sequential/test-net-GH-5504.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/sequential/test-net-GH-5504.js b/test/sequential/test-net-GH-5504.js
index 3ebf9db548..b40cfb400b 100644
--- a/test/sequential/test-net-GH-5504.js
+++ b/test/sequential/test-net-GH-5504.js
@@ -1,5 +1,5 @@
'use strict';
-var common = require('../common');
+const common = require('../common');
// this test only fails with CentOS 6.3 using kernel version 2.6.32
// On other linuxes and darwin, the `read` call gets an ECONNRESET in
@@ -18,7 +18,7 @@ switch (process.argv[2]) {
}
function server() {
- var net = require('net');
+ const net = require('net');
var content = Buffer.alloc(64 * 1024 * 1024, '#');
net.createServer(function(socket) {
this.close();
@@ -35,7 +35,7 @@ function server() {
}
function client() {
- var net = require('net');
+ const net = require('net');
var client = net.connect({
host: common.localhostIPv4,
port: common.PORT
@@ -45,7 +45,7 @@ function client() {
}
function parent() {
- var spawn = require('child_process').spawn;
+ const spawn = require('child_process').spawn;
var node = process.execPath;
var s = spawn(node, [__filename, 'server'], {