summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-timeout.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-http-timeout.js')
-rw-r--r--test/parallel/test-http-timeout.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-http-timeout.js b/test/parallel/test-http-timeout.js
index 8c24f6e16b..817bfe7a3c 100644
--- a/test/parallel/test-http-timeout.js
+++ b/test/parallel/test-http-timeout.js
@@ -25,11 +25,11 @@ require('../common');
const http = require('http');
const server = http.createServer(function(req, res) {
- res.writeHead(200, {'Content-Type': 'text/plain'});
+ res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('OK');
});
-const agent = new http.Agent({maxSockets: 1});
+const agent = new http.Agent({ maxSockets: 1 });
server.listen(0, function() {
@@ -43,7 +43,7 @@ server.listen(0, function() {
function createRequest() {
const req = http.request(
- {port: server.address().port, path: '/', agent: agent},
+ { port: server.address().port, path: '/', agent: agent },
function(res) {
req.clearTimeout(callback);