Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
test: refactor switch#4870
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: refactor switch #4870
Uh oh!
There was an error while loading. Please reload this page.
Conversation
`test-child-process-fork-net2.js` has a switch statement with 6 cases. Each case uses `child.send()`, passing an object for the callback. `child.send()` ignores the callback because it is not a function. Removing the unused argument. PR-URL: nodejs#4870
Trott commented Jan 26, 2016
OK, updated to just remove confusing unused object from function calls. |
Trott commented Jan 26, 2016
Trott commented Jan 27, 2016
One buildbot failure but otherwise looks good. /cc @nodejs/testing (looking for an LGTM or two) |
santigimeno commented Jan 27, 2016
LGTM |
orangemocha commented Jan 27, 2016
LGTM Shouldn't send check the type of callback right away? |
Trott commented Jan 27, 2016
@orangemocha You'd think so, but it doesn't. Not sure if that's a feature or a bug. Here's the current relevant code from So, if the But if it is connected, then it passes It will call the callback on success if the callback is a function, but ignore it otherwise. Again, not sure if this is a bug or a feature (or me misunderstanding how the code works--always a possibility). |
Trott commented Jan 27, 2016
@orangemocha I should add that if |
Trott commented Jan 27, 2016
`test-child-process-fork-net2.js` has a switch statement with 6 cases. Each case uses `child.send()`, passing an object for the callback. `child.send()` ignores the callback because it is not a function. Removing the unused argument. PR-URL: nodejs#4870 Reviewed-By: Alexis Campailla <[email protected]>
Trott commented Jan 27, 2016
Landed in 0351b2f |
jasnell commented Jan 27, 2016
Added the lts-watch-v4.x label. |
`test-child-process-fork-net2.js` has a switch statement with 6 cases. Each case uses `child.send()`, passing an object for the callback. `child.send()` ignores the callback because it is not a function. Removing the unused argument. PR-URL: #4870 Reviewed-By: Alexis Campailla <[email protected]>
`test-child-process-fork-net2.js` has a switch statement with 6 cases. Each case uses `child.send()`, passing an object for the callback. `child.send()` ignores the callback because it is not a function. Removing the unused argument. PR-URL: #4870 Reviewed-By: Alexis Campailla <[email protected]>
MylesBorins commented Feb 17, 2016
@Trott this commit is breaking the unit test suite on Would you be open to backporting this and opening a new PR so we can test and what not |
Trott commented Feb 17, 2016
@thealphanerd Odd. This change should be a no-op. When you say "unit test suite", what is that? |
MylesBorins commented Feb 17, 2016
never mind.. there is a new flaky test on 4.x... I'll land this now |
MylesBorins commented Feb 17, 2016
Here's the error we are getting now |
`test-child-process-fork-net2.js` has a switch statement with 6 cases. Each case uses `child.send()`, passing an object for the callback. `child.send()` ignores the callback because it is not a function. Removing the unused argument. PR-URL: #4870 Reviewed-By: Alexis Campailla <[email protected]>
Trott commented Feb 17, 2016
@thealphanerd I've not seen that before. (It's almost definitely unrelated to this PR.) Is that OS X? Are you running |
MylesBorins commented Feb 17, 2016
happening locally on osx when running make-test. Once I have this RC ready to cut I'm going to stress test that one |
santigimeno commented Feb 18, 2016
I'm pretty sure I've seen that one on OS X too |
santigimeno commented Feb 18, 2016
Oh, I sent a PR some time ago for this: #4970 |
`test-child-process-fork-net2.js` has a switch statement with 6 cases. Each case uses `child.send()`, passing an object for the callback. `child.send()` ignores the callback because it is not a function. Removing the unused argument. PR-URL: #4870 Reviewed-By: Alexis Campailla <[email protected]>
`test-child-process-fork-net2.js` has a switch statement with 6 cases. Each case uses `child.send()`, passing an object for the callback. `child.send()` ignores the callback because it is not a function. Removing the unused argument. PR-URL: #4870 Reviewed-By: Alexis Campailla <[email protected]>
`test-child-process-fork-net2.js` has a switch statement with 6 cases. Each case uses `child.send()`, passing an object for the callback. `child.send()` ignores the callback because it is not a function. Removing the unused argument. PR-URL: nodejs#4870 Reviewed-By: Alexis Campailla <[email protected]>
test-child-process-fork-net2.jshas a switch statement with 6 cases.Each case uses
child.send(), passing an object for the callback.child.send()ignores the callback because it is not a function.Removing the unused argument.