Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0e02eb0

Browse filesBrowse files
TrottMyles Borins
authored andcommitted
test: only include http module once
A few tests in test/gc include the http module twice. Remove duplicate require(). PR-URL: #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>
1 parent 5990ba2 commit 0e02eb0
Copy full SHA for 0e02eb0

File tree

Expand file treeCollapse file tree

4 files changed

+0
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

4 files changed

+0
-4
lines changed
Open diff view settings
Collapse file

‎test/gc/test-http-client-connaborted.js‎

Copy file name to clipboardExpand all lines: test/gc/test-http-client-connaborted.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ let countGC = 0;
1818

1919
console.log('We should do ' + todo + ' requests');
2020

21-
var http = require('http');
2221
var server = http.createServer(serverHandler);
2322
server.listen(PORT, getall);
2423

Collapse file

‎test/gc/test-http-client-onerror.js‎

Copy file name to clipboardExpand all lines: test/gc/test-http-client-onerror.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ let countGC = 0;
2020

2121
console.log('We should do ' + todo + ' requests');
2222

23-
var http = require('http');
2423
var server = http.createServer(serverHandler);
2524
server.listen(PORT, runTest);
2625

Collapse file

‎test/gc/test-http-client-timeout.js‎

Copy file name to clipboardExpand all lines: test/gc/test-http-client-timeout.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ let countGC = 0;
2222

2323
console.log('We should do ' + todo + ' requests');
2424

25-
var http = require('http');
2625
var server = http.createServer(serverHandler);
2726
server.listen(PORT, getall);
2827

Collapse file

‎test/gc/test-http-client.js‎

Copy file name to clipboardExpand all lines: test/gc/test-http-client.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ let countGC = 0;
1818

1919
console.log('We should do ' + todo + ' requests');
2020

21-
var http = require('http');
2221
var server = http.createServer(serverHandler);
2322
server.listen(PORT, getall);
2423

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.