summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-eof-on-connect.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-http-eof-on-connect.js')
-rw-r--r--test/parallel/test-http-eof-on-connect.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-http-eof-on-connect.js b/test/parallel/test-http-eof-on-connect.js
index 6f70dc2391..f67e45ed40 100644
--- a/test/parallel/test-http-eof-on-connect.js
+++ b/test/parallel/test-http-eof-on-connect.js
@@ -1,13 +1,13 @@
'use strict';
require('../common');
-var net = require('net');
-var http = require('http');
+const net = require('net');
+const http = require('http');
// This is a regression test for https://github.com/joyent/node/issues/44
// It is separate from test-http-malformed-request.js because it is only
// reproduceable on the first packet on the first connection to a server.
-var server = http.createServer(function(req, res) {});
+const server = http.createServer(function(req, res) {});
server.listen(0);
server.on('listening', function() {