-
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
tests: remove common.PORT from shared,master,rr tests #12451
Conversation
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.
It looks good. Just to be sure the test behaves as originally intended, I would check that it fails in nodejs version 4.2.1
on an OS other than linux as it's pointed out in the description of the test.
worker2 = cluster.fork(); | ||
worker2.on('online', function() { | ||
conn = net.connect(common.PORT, common.mustCall(function() { | ||
conn = net.connect(worker.port, common.mustCall(function() { |
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.
I would rename worker
to address
.
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.
Yeah, that makes sense. Changing.
@santigimeno Yes I saw the comment and I'm curious too, but I don't have access to another OS. |
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.
@tarunbatra I can confirm it also fails as expected with the new version of the test using nodejs@4.2.1 on OS.X
. LGTM
@santigimeno great. Thanx! I'll try to use similar pattern in other test files. |
@santigimeno What should be preferred, more commits to this PR or a new PR for small changes to other files regarding the same issue #12376 ? |
@tarunbatra if the changes are similar I would group them, but as you prefer :). |
Files changed: * test/parallel/test-cluster-master-error.js * test/parallel/test-cluster-master-kill.js * test/parallel/test-cluster-net-send.js * test/parallel/test-cluster-rr-domain-listen.js * test/parallel/test-cluster-rr-ref.js * test/parallel/test-cluster-worker-no-exit.js Refs: #12376 PR_URL: #12451
Landed in 2e5188d |
Refs: #12376
PR_URL: #12451
Tests updated:
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test