test: only include http module once
authorRich Trott <rtrott@gmail.com>
Sun, 10 Jan 2016 05:12:15 +0000 (21:12 -0800)
committerMyles Borins <mborins@us.ibm.com>
Mon, 15 Feb 2016 19:30:23 +0000 (11:30 -0800)
A few tests in test/gc include the http module twice. Remove duplicate
require().

PR-URL: https://github.com/nodejs/node/pull/4606
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
test/gc/test-http-client-connaborted.js
test/gc/test-http-client-onerror.js
test/gc/test-http-client-timeout.js
test/gc/test-http-client.js

index b5aafb7..5accec4 100644 (file)
@@ -18,7 +18,6 @@ let countGC = 0;
 
 console.log('We should do ' + todo + ' requests');
 
-var http = require('http');
 var server = http.createServer(serverHandler);
 server.listen(PORT, getall);
 
index 5c2a9cc..e94bde6 100644 (file)
@@ -20,7 +20,6 @@ let countGC = 0;
 
 console.log('We should do ' + todo + ' requests');
 
-var http = require('http');
 var server = http.createServer(serverHandler);
 server.listen(PORT, runTest);
 
index c3ab9dc..1f87bce 100644 (file)
@@ -22,7 +22,6 @@ let countGC = 0;
 
 console.log('We should do ' + todo + ' requests');
 
-var http = require('http');
 var server = http.createServer(serverHandler);
 server.listen(PORT, getall);
 
index 9d210e9..0cceb1e 100644 (file)
@@ -18,7 +18,6 @@ let countGC = 0;
 
 console.log('We should do ' + todo + ' requests');
 
-var http = require('http');
 var server = http.createServer(serverHandler);
 server.listen(PORT, getall);