Skip to content
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

Handle large outputs from exec. #288

Merged
merged 3 commits into from
Jun 11, 2022
Merged

Conversation

hildjj
Copy link
Contributor

@hildjj hildjj commented Jun 10, 2022

Fixes #287.

@Mingun, please rebase #206 on this, and see if it fixes your problem before I merge.

@hildjj hildjj force-pushed the mock-stream-buffering branch from a8f96d9 to 766c6a8 Compare June 10, 2022 21:49
@@ -186,7 +189,14 @@ async function exec(opts: Options = {}) {
}

if (outputString === null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check is still always true, because outputString doesn't change after declaring at line 126

Copy link
Member

@Mingun Mingun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this fixes my problem. I think, you can remove unnecessary check for null, otherwise is it good to merge.

@hildjj hildjj mentioned this pull request Jun 11, 2022
@hildjj hildjj merged commit 575de6c into peggyjs:main Jun 11, 2022
@hildjj hildjj deleted the mock-stream-buffering branch June 11, 2022 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MockStream blocks on large output
2 participants