test: move net reconnect error test to sequential#13033
test: move net reconnect error test to sequential#13033arturgvieira-zz wants to merge 1 commit intonodejs:masterfrom arturgvieira-zz:commonPort10-branch
Conversation
|
There is a comment on the test which I think can be removed now. Calls to |
|
[non blocking opinion] |
|
Hi, I've removed the comment, as @lpinca mentioned. |
|
@refack Could you take a look and let me know if this is what you meant? If not could you point me in the right direction? Not sure how to use common.mustNotCall. |
|
I checked on the lint errors. Everything should be good to go. |
Trott
left a comment
There was a problem hiding this comment.
The changes introduced here greatly change the test. Previously, there were 20 attempted connections, now there is only 1. This is not a refactor; this is a change. Should be in a separate PR if at all.
|
By the way, the change from 20 attempted connections to just 1 seems likely to defeat the purpose of the test, as the test name contains I'm not opposed to refactoring a test that is being moved in general, but I don't know that I would have recommended it here where you already had a bunch of reviews/approvals. |
|
Good point, I will revert it back to the original test. |
|
I have made the requested changes. |
There was a problem hiding this comment.
You could try to add `common.mustCall(..., 20) here and on line 39
I know we're driving you crazy back and forth, sorry... |
|
No worries. I am most interested in getting it right. I don't mind. |
There was a problem hiding this comment.
[suggestion]
I see here an interesting point. Think about this handler...
On the one hand you have the mustCall count that verified each operation is called 21 time.
On the other hand you already have these numbers calculated, so why not check them.
From my perspective it's totally up to you to decide, but thinking about it IMHO is the important part.
|
Stress on freeBSD (100 x all |
The usage of common.PORT could cause undesired port collisions when run in parallel. The following test was moved to sequential. test-net-reconnect-error.js Ref: #12376
|
@refack I made the first changes you requested and used N + 1, but not sure what would be the desired change on the second request entry, the one about the 'exit' handler. If you could clarify. Thanks |
👍 P.S. Stress test seems to pass. |
Trott
left a comment
There was a problem hiding this comment.
LGTM if CI is green. Thanks for sticking with it!
|
@refack I think that since those variables are used in the test, that we should track their input and output values. As a way to make certain that the test framing stays together, making sure that their values are known helps to understand the test, and have expectations as to results. |
Sounds like a good reason to me. Thank you for taking the time to indulge me 👍 |
|
CI: https://ci.nodejs.org/job/node-test-commit/10039/ |
|
landed in c60a7fa |
The usage of common.PORT could cause undesired port collisions when run in parallel. The following test was moved to sequential. test-net-reconnect-error.js PR-URL: #13033 Refs: #12376 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
|
Post land CI: https://ci.nodejs.org/job/node-test-commit/10041/ |
The usage of common.PORT could cause undesired port collisions when run in parallel. The following test was moved to sequential. test-net-reconnect-error.js PR-URL: #13033 Refs: #12376 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
The usage of common.PORT could cause undesired port collisions when run
in parallel. The following test was moved to sequential.
test-net-reconnect-error.js
Ref: #12376
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test net