-
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
test: test sync version of mkdir & rmdir #2588
Conversation
This patch includes tests for sync versions of mkdir and rmdir. Also, it moves the test to `parallel`.
cc @nodejs/build this moves another test to |
LGTM code wise. Are sync tests in |
Sync tests in parallel are fine. There's already a whole bunch:
|
Excuse me for asking, but why exactly do we split tests into parallel and sequential then? |
Tests in parallel are run in actual parallel processes by the python runner when run with |
sorry, to answer the actual question @silverwind, "sync" tests in the Node sense are perfectly find and good to go in the parallel directory, they will be run in parallel Node processes |
Parallel tests are run in parallel by four (or whatever) separate node processes. This is handled by the Python wrapper. So synchronous stuff is not a problem. It only becomes a problem if it (for example) binds to a port on localhost. Then it might be binding to a port that another process is trying to bind to. So that needs to go in sequential. (Temp directory stuff is also not a problem because the Python wrapper creates separate tmp directories for the different note processes.) @rvagg just answered this so now my answer is superfluous but I typed it up, so here you go. Maybe there's a detail in there that is helpful. |
Bump! |
LGTM |
This patch includes tests for sync versions of mkdir and rmdir. Also, it moves the test to `parallel`. PR-URL: #2588 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Thanks for the review people, landed in 571a517 |
This patch includes tests for sync versions of mkdir and rmdir. Also, it moves the test to `parallel`. PR-URL: #2588 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
This patch includes tests for sync versions of mkdir and rmdir.
Also, it moves the test to
parallel
.CI Run: https://jenkins-iojs.nodesource.com/job/node-test-pull-request/197/