Skip to content

Commit

Permalink
test: only include http module once
Browse files Browse the repository at this point in the history
A few tests in test/gc include the http module twice. Remove duplicate
require().

PR-URL: nodejs#4606
Reviewed-By: Brian White <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
Trott authored and Myles Borins committed Feb 15, 2016
1 parent 5990ba2 commit 0e02eb0
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion test/gc/test-http-client-connaborted.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 0 additions & 1 deletion test/gc/test-http-client-onerror.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 0 additions & 1 deletion test/gc/test-http-client-timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 0 additions & 1 deletion test/gc/test-http-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0e02eb0

Please sign in to comment.