Skip to content
Myr

Add a test for new release of `merge-streams` (#832)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ehmicky · committed by GitHub · parent cd2a6c0 · Browse files · 1 file+21 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+21 added−0 removed

  • tests:+21 added−0 removed

1 file+21 added−0 removed

modified:test/stream.js+21 added
312 unmodified lines
313test('Process buffers stderr, which does not prevent exit if read and buffer is false', testBufferRead, 2, false);314test('Process buffers stdio[*], which does not prevent exit if read and buffer is false', testBufferRead, 3, false);315test('Process buffers all, which does not prevent exit if read and buffer is false', testBufferRead, 1, true);316317test('Aborting stdout should not abort stderr nor all', async t => {318 const subprocess = execa('empty.js', {all: true});319320 subprocess.stdout.destroy();321 t.false(subprocess.stdout.readable);322 t.true(subprocess.stderr.readable);323 t.true(subprocess.all.readable);324325 await subprocess;326327 t.false(subprocess.stdout.readableEnded);328 t.is(subprocess.stdout.errored, null);329 t.true(subprocess.stdout.destroyed);330 t.true(subprocess.stderr.readableEnded);331 t.is(subprocess.stderr.errored, null);332 t.true(subprocess.stderr.destroyed);333 t.true(subprocess.all.readableEnded);334 t.is(subprocess.all.errored, null);335 t.true(subprocess.all.destroyed);336});337338const getStreamInputProcess = index => execa('stdin-fd.js', [`${index}`], index === 3339 ? getStdio(3, [new Uint8Array(), infiniteGenerator])340 : {});341const getStreamOutputProcess = index => execa('noop-repeat.js', [`${index}`], index === 3 ? fullStdio : {});
152 unmodified lines