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
Add buffer
option to be able to disable buffering
#133
Add buffer
option to be able to disable buffering
#133
Conversation
|
@spalger Still interested in finishing this? |
d255279
to
7de85ff
Compare
@sindresorhus yep, sorry, got lost in the pile. Should be good to go now |
11ac4e3
to
7642e47
Compare
@@ -358,7 +380,7 @@ test('err.code is 3', code, 3); | |||
test('err.code is 4', code, 4); | |||
|
|||
test('timeout will kill the process early', async t => { | |||
const err = await t.throws(m('delay', ['3000', '0'], {timeout: 1500})); | |||
const err = await t.throws(m('delay', ['60000', '0'], {timeout: 1500})); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this in an effort to fix the AppVeyor failure here: https://ci.appveyor.com/project/sindresorhus/execa/build/1.0.337
Not sure if this others see this type of failure regularly, but it passes locally and shouldn't be effected by my changes, so I'm not sure what else I should do about it. (note: I initially tried a delay 5 seconds and that wasn't enough to get it passing on AppVeyor)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AppVeyor is known for being really slow and annoying. The usual fix is what you've done and just increase the timeouts a lot.
maxBuffer: null
buffer
option to be able to disable buffering
Thank you 🙌 |
Fixes #127
The issue describes adding a
buffer: false
option, which seemed to be in conflict with themaxBuffer
option that's already supported, so rather than adding a new option this PR disables buffering of stdio whenmaxBuffer: null
is used.