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

Add all option #353

Merged
merged 19 commits into from
Jul 31, 2019
Prev Previous commit
Next Next commit
Move test
  • Loading branch information
ehmicky committed Jul 16, 2019
commit 522a0877150119cb0cdde830090bdbbe795f4b12
8 changes: 4 additions & 4 deletions test/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ test('buffer: false > promise resolves', async t => {
await t.notThrowsAsync(execa('noop', {buffer: false}));
});

test('buffer: false > promise resolves when output is big but is not pipable', async t => {
await t.notThrowsAsync(execa('max-buffer', {buffer: false, stdout: 'ignore'}));
});

test('buffer: false > promise resolves when output is big and is read', async t => {
const cp = execa('max-buffer', {buffer: false});
cp.stdout.resume();
Expand All @@ -160,10 +164,6 @@ test('buffer: false > promise resolves when output is big and "all" is used and
await t.notThrowsAsync(cp);
});

test('buffer: false > promise resolves when output is big but is not pipable', async t => {
await t.notThrowsAsync(execa('max-buffer', {buffer: false, stdout: 'ignore'}));
});

const BUFFER_TIMEOUT = 1e3;

test.serial('buffer: false > promise does not resolve when output is big and is not read', async t => {
Expand Down