Skip to content
Myr

Fix CI tests (#827)

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

authored by ehmicky · committed by GitHub · parent 35c0fb0 · Browse files · 1 file+6 added−7 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+6 added−7 removed

  • tests:+6 added−7 removed

1 file+6 added−7 removed

modified:test/stdio/node-stream.js+6 added-7 removed
70 unmodified lines
71 return {stream, filePath};72};7374const assertFileStreamError = async (t, childProcess, stream, filePath) => {75 await once(childProcess, 'spawn');75 const error = new Error('test');76 stream.destroy(error);7778 t.is(await t.throwsAsync(childProcess), error);
27 unmodified lines
106107 await assertFileStreamError(t, childProcess, stream, filePath);108};109111test('input handles errors from a Node.js Readable with a file descriptor', testFileReadableError, 'input');112test('stdin handles errors from a Node.js Readable with a file descriptor', testFileReadableError, 0);113test('stdio[*] handles errors from a Node.js Readable with a file descriptor', testFileReadableError, 3);110test.serial('input handles errors from a Node.js Readable with a file descriptor', testFileReadableError, 'input');111test.serial('stdin handles errors from a Node.js Readable with a file descriptor', testFileReadableError, 0);112test.serial('stdio[*] handles errors from a Node.js Readable with a file descriptor', testFileReadableError, 3);113114const testFileReadableOpen = async (t, index, useSingle, execaMethod) => {115 const {stream, filePath} = await createFileReadStream();116 t.deepEqual(stream.eventNames(), []);
38 unmodified lines
155156 await assertFileStreamError(t, childProcess, stream, filePath);157};158160test('stdout handles errors from a Node.js Writable with a file descriptor', testFileWritableError, 1);161test('stderr handles errors from a Node.js Writable with a file descriptor', testFileWritableError, 2);162test('stdio[*] handles errors from a Node.js Writable with a file descriptor', testFileWritableError, 3);159test.serial('stdout handles errors from a Node.js Writable with a file descriptor', testFileWritableError, 1);160test.serial('stderr handles errors from a Node.js Writable with a file descriptor', testFileWritableError, 2);161test.serial('stdio[*] handles errors from a Node.js Writable with a file descriptor', testFileWritableError, 3);162163const testFileWritableOpen = async (t, index, useSingle, execaMethod) => {164 const {stream, filePath} = await createFileWriteStream();165 t.deepEqual(stream.eventNames(), []);
103 unmodified lines