-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
refactor http.get expectedCount with common.mustCall #12668
Conversation
Linter:
It seems these variables are not needed anymore. |
@@ -220,5 +219,4 @@ process.on('exit', () => { | |||
assert.strictEqual(server1.requests.length, server1.expectCount); | |||
assert.strictEqual(server2.requests.length, server2.expectCount); | |||
assert.strictEqual(server3.requests.length, server3.expectCount); | |||
assert.strictEqual(responseCount, expectResponseCount); |
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.
You should probably remove expectResponseCount
usages too.
missed out on removing the variables. I have removed expectResponseCount and responseCount. |
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.
LGTM.
Based on email conversation with @weewey, I believe the third commit with changes to |
yes @Trott I committed the changes in the same branch, as a result the commit was appended. |
@Trott removed. |
PR-URL: #12668 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Landed in f11d4a1 |
PR-URL: #12668 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #12668 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #12668 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: James M Snell <jasnell@gmail.com>
refactor http.get expectedCount with common.mustCall
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)