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

changed var to const, added strict equality checks #8762

Closed
wants to merge 1 commit into from

Conversation

llkats
Copy link
Contributor

@llkats llkats commented Sep 24, 2016

Checklist
  • make -j8 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

test fs

Description of change

Changed var to const where appropriate. Substituted
assert.strictEqual for assert.equal for better type checks.

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Sep 24, 2016
@mscdex mscdex added the fs Issues and PRs related to the fs subsystem / file system. label Sep 24, 2016
@bengl
Copy link
Member

bengl commented Sep 24, 2016

Copy link
Member

@addaleax addaleax left a comment

Choose a reason for hiding this comment

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

This looks pretty good so far, thank you! I find this test kind of hard to read, so if you have any ideas for other improvements/explaining comments/whatever, please feel free to add that here!

check++;
setTimeout(checkFunction, 100);
return;
}
assert.equal(0, openCount, 'no leaked file descriptors using ' +
assert.strictEqual(0, openCount, 'no leaked file descriptors using ' +
endFn + '() (got ' + openCount + ')');
Copy link
Member

Choose a reason for hiding this comment

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

Could you try to indent the second line here so that the arguments line up again?

Copy link
Member

Choose a reason for hiding this comment

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

Oh, and just a suggestion, but maybe this would be better using a template string here? (If you agree that that might be more readable, that is.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Template string was a great idea. I've followed up with a commit - how do you like the look of it?

@Trott
Copy link
Member

Trott commented Sep 24, 2016

LGTM with @addaleax's comments and if CI has no surprises

@MylesBorins
Copy link
Contributor

LGTM 🎉🎉🎉
@llkats would you be able to squash the changes?

Changed var to const where appropriate. Substituted
assert.strictEqual for assert.equal for better type checks.
@llkats
Copy link
Contributor Author

llkats commented Sep 24, 2016

@thealphanerd squasht!

Copy link
Member

@addaleax addaleax left a comment

Choose a reason for hiding this comment

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

Copy link
Member

@lpinca lpinca left a comment

Choose a reason for hiding this comment

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

LGTM

@jasnell
Copy link
Member

jasnell commented Sep 26, 2016

LGTM

jasnell pushed a commit that referenced this pull request Sep 26, 2016
Changed var to const where appropriate. Substituted
assert.strictEqual for assert.equal for better type checks.

PR-URL: #8762
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@jasnell
Copy link
Member

jasnell commented Sep 26, 2016

Landed in 52b6cfb

@jasnell jasnell closed this Sep 26, 2016
@llkats llkats deleted the nodetodo-contrib branch September 26, 2016 21:10
jasnell pushed a commit that referenced this pull request Sep 29, 2016
Changed var to const where appropriate. Substituted
assert.strictEqual for assert.equal for better type checks.

PR-URL: #8762
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Fishrock123 pushed a commit that referenced this pull request Oct 11, 2016
Changed var to const where appropriate. Substituted
assert.strictEqual for assert.equal for better type checks.

PR-URL: #8762
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fs Issues and PRs related to the fs subsystem / file system. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants