aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-http-destroyed-socket-write2.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-http-destroyed-socket-write2.js')
-rw-r--r--test/parallel/test-http-destroyed-socket-write2.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-http-destroyed-socket-write2.js b/test/parallel/test-http-destroyed-socket-write2.js
index 7d2f235a27..bb3f5d64cb 100644
--- a/test/parallel/test-http-destroyed-socket-write2.js
+++ b/test/parallel/test-http-destroyed-socket-write2.js
@@ -1,11 +1,11 @@
'use strict';
-var common = require('../common');
-var assert = require('assert');
+const common = require('../common');
+const assert = require('assert');
// Verify that ECONNRESET is raised when writing to a http request
// where the server has ended the socket.
-var http = require('http');
+const http = require('http');
var server = http.createServer(function(req, res) {
setImmediate(function() {
res.destroy();