Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: remove unused modules #4475

Closed
wants to merge 1 commit into from
Closed

Conversation

Trott
Copy link
Member

@Trott Trott commented Dec 30, 2015

Many tests use require() to import modules that subsequently never gets
used. This removes those imports and, in a few cases, removes other
unused variables from tests.

I'm especially looking for review on the tests in test/pummel as I'm not 100% clear on how those tests work. It seems like a number of them were failing already prior to these changes (judging from results running make test-pummel on OS X).

@Trott Trott added the test Issues and PRs related to the tests. label Dec 30, 2015
@@ -5,7 +5,6 @@

var common = require('../common');
var assert = require('assert');
var cluster = require('cluster');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guess this test is poorly named if it doesn't use the cluster module.

@bnoordhuis
Copy link
Member

LGTM

I'm especially looking for review on the tests in test/pummel as I'm not 100% clear on how those tests work. It seems like a number of them were failing already prior to these changes

I can confirm that.

@jasnell
Copy link
Member

jasnell commented Dec 30, 2015

Many tests use require() to import modules that subsequently never gets
used. This removes those imports and, in a few cases, removes other
unused variables from tests.
@Trott
Copy link
Member Author

Trott commented Dec 30, 2015

Rebased and force pushed.

CI: https://ci.nodejs.org/job/node-test-commit/1583/

@Trott
Copy link
Member Author

Trott commented Dec 30, 2015

Seemingly unrelated test failure on one of the Raspberry Pi devices, but CI looks good other than that.

@jbergstroem
Copy link
Member

LGTM

Trott added a commit to Trott/io.js that referenced this pull request Jan 2, 2016
Many tests use require() to import modules that subsequently never gets
used. This removes those imports and, in a few cases, removes other
unused variables from tests.

PR-URL: nodejs#4475
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
@Trott
Copy link
Member Author

Trott commented Jan 2, 2016

Landed in 6abd8b5

@Trott Trott closed this Jan 2, 2016
Fishrock123 pushed a commit to Fishrock123/node that referenced this pull request Jan 6, 2016
Many tests use require() to import modules that subsequently never gets
used. This removes those imports and, in a few cases, removes other
unused variables from tests.

PR-URL: nodejs#4475
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
@MylesBorins
Copy link
Contributor

@Trott this is merging with conflicts on v4.x-staging

would you be able to take a look?

@Trott
Copy link
Member Author

Trott commented Jan 14, 2016

@thealphanerd #4684

scovetta pushed a commit to scovetta/node that referenced this pull request Apr 2, 2016
Many tests use require() to import modules that subsequently never gets
used. This removes those imports and, in a few cases, removes other
unused variables from tests.

PR-URL: nodejs#4475
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
@Trott Trott deleted the rm-unused-modules branch January 13, 2022 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants