test: fix test-child-process-stdout-flush-exit#1868
Merged
bnoordhuis merged 1 commit intonodejs:masterfrom Jun 2, 2015
santigimeno:fix-test-child-process-stdout-flush-exit
Merged
test: fix test-child-process-stdout-flush-exit#1868bnoordhuis merged 1 commit intonodejs:masterfrom santigimeno:fix-test-child-process-stdout-flush-exit
bnoordhuis merged 1 commit intonodejs:masterfrom
santigimeno:fix-test-child-process-stdout-flush-exit
Conversation
Make sure all the stdout data is available before performing the assertions.
Member
There was a problem hiding this comment.
Can you wrap the callback in a common.mustCall(...) while you're here? LGTM otherwise.
Member
Author
|
@bnoordhuis done. Thanks |
Member
|
Cheers. Let's see what the CI thinks: https://jenkins-iojs.nodesource.com/view/iojs/job/iojs+any-pr+multi/751/ |
Member
Author
|
Probably related to #944 |
Contributor
There was a problem hiding this comment.
assert.strictEqual would be better, no?
Member
There was a problem hiding this comment.
Doesn't really matter for primitives. I'll land it, CI is happy.
Member
|
Landed in 311c3e4, thanks. |
Contributor
|
(LGTM) |
Member
|
Updated in b926718. |
andrewdeandrade
pushed a commit
to andrewdeandrade/node
that referenced
this pull request
Jun 3, 2015
Make sure all the stdout data is available before performing the assertions. Fixes: nodejs/node#944 PR-URL: nodejs/node#1868 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
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.
Make sure all the stdout data is available before
performing the assertions.
Before this change, I was getting this error from time to time: