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: add mustCall to setTimeout #9984

Closed
wants to merge 1 commit into from
Closed

test: add mustCall to setTimeout #9984

wants to merge 1 commit into from

Conversation

kmccmk9
Copy link
Contributor

@kmccmk9 kmccmk9 commented Dec 1, 2016

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

test

Description of change

Added mustCall to the setTimout inline function. Changed assert.equal
to assert.strictEqual. Changed var for require modules to let.

Added mustCall to the setTimout inline function. Changed assert.equal
to assert.strictEqual. Changed var for require modules to let.
@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Dec 1, 2016
@mscdex mscdex added the net Issues and PRs related to the net subsystem. label Dec 1, 2016
@imyller imyller added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Dec 1, 2016
serverConnection.end();
clientConnection.end();
echoServer.close();
}, common.platformTimeout(100));
},1), common.platformTimeout(100));
Copy link
Contributor

Choose a reason for hiding this comment

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

There should be a space before the 1 here.

@mscdex
Copy link
Contributor

mscdex commented Dec 1, 2016

I think the commit message should either be changed to allude to the other changes being made or separate commits should be made.

var common = require('../common');
var assert = require('assert');
var net = require('net');
let common = require('../common');
Copy link
Contributor

Choose a reason for hiding this comment

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

why not const instead of let?

serverConnection.end();
clientConnection.end();
echoServer.close();
}, common.platformTimeout(100));
},1), common.platformTimeout(100));
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: A space before 1

@kmccmk9
Copy link
Contributor Author

kmccmk9 commented Dec 1, 2016

Fixed in: #9995

@kmccmk9 kmccmk9 closed this Dec 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. net Issues and PRs related to the net subsystem. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants