-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Conversation
Added mustCall to the setTimout inline function. Changed assert.equal to assert.strictEqual. Changed var for require modules to let.
serverConnection.end(); | ||
clientConnection.end(); | ||
echoServer.close(); | ||
}, common.platformTimeout(100)); | ||
},1), common.platformTimeout(100)); |
There was a problem hiding this comment.
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.
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'); |
There was a problem hiding this comment.
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)); |
There was a problem hiding this comment.
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
Fixed in: #9995 |
Checklist
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected 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.