Repository navigation
fix(test-runner): make it compatible when running as a sub-process - #7298
Merged
Max Schmitt (mxschmitt) merged 1 commit intoJun 24, 2021
Conversation
Max Schmitt (mxschmitt)
force-pushed
the
bugfix/test-runner-make-sub-process-compatible
branch
from
June 24, 2021 14:09
bda26ff to
6a96332
Compare
Dmitry Gozman (dgozman)
left a comment
Collaborator
There was a problem hiding this comment.
- We have
_flushOutputmethod that should help in this case. - We cannot afford to not call
process.exit()because there might be any random unfinished operations, e.g. setTimeout() called from describe or something like that.
Max Schmitt (mxschmitt)
force-pushed
the
bugfix/test-runner-make-sub-process-compatible
branch
from
June 24, 2021 22:09
6a96332 to
da0ba11
Compare
| // See https://github.com/nodejs/node/issues/6456. | ||
| // | ||
| // We can use writableNeedDrain to workaround this, but it is only available | ||
| // since node v15.2.0. |
Contributor
Author
There was a problem hiding this comment.
Node.js 15+ is not relevant for us since we need to support Node.js 12+. The new fix also works in Node.js 12+.
Works around the following bug: nodejs/node#12921
Max Schmitt (mxschmitt)
force-pushed
the
bugfix/test-runner-make-sub-process-compatible
branch
from
June 24, 2021 22:18
da0ba11 to
ecc4552
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Works around the following bug: nodejs/node#12921
TL;DR process.exit() does kill the process right away and does not wait until the parent process has received the data.
I only received the JSON partly which was by that not parsable.