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
Provenance
- Commit
9435a34- Tree
e8548cc- Author
ehmicky <ehmicky@users.noreply.github.com>- Committer
GitHub <noreply@github.com>- Parent
35c0fb0
1 file changed+6 added−7 removed
modified:test/stdio/node-stream.js+6 added-7 removed
70 unmodified lines71 return {stream, filePath};72 };73 74 const assertFileStreamError = async (t, childProcess, stream, filePath) => {75- await once(childProcess, 'spawn');75 const error = new Error('test');76 stream.destroy(error);77 78 t.is(await t.throwsAsync(childProcess), error);27 unmodified lines106 107 await assertFileStreamError(t, childProcess, stream, filePath);108 };109 111-test('input handles errors from a Node.js Readable with a file descriptor', testFileReadableError, 'input');112-test('stdin handles errors from a Node.js Readable with a file descriptor', testFileReadableError, 0);113-test('stdio[*] handles errors from a Node.js Readable with a file descriptor', testFileReadableError, 3);110+test.serial('input handles errors from a Node.js Readable with a file descriptor', testFileReadableError, 'input');111+test.serial('stdin handles errors from a Node.js Readable with a file descriptor', testFileReadableError, 0);112+test.serial('stdio[*] handles errors from a Node.js Readable with a file descriptor', testFileReadableError, 3);113 114 const testFileReadableOpen = async (t, index, useSingle, execaMethod) => {115 const {stream, filePath} = await createFileReadStream();116 t.deepEqual(stream.eventNames(), []);38 unmodified lines155 156 await assertFileStreamError(t, childProcess, stream, filePath);157 };158 160-test('stdout handles errors from a Node.js Writable with a file descriptor', testFileWritableError, 1);161-test('stderr handles errors from a Node.js Writable with a file descriptor', testFileWritableError, 2);162-test('stdio[*] handles errors from a Node.js Writable with a file descriptor', testFileWritableError, 3);159+test.serial('stdout handles errors from a Node.js Writable with a file descriptor', testFileWritableError, 1);160+test.serial('stderr handles errors from a Node.js Writable with a file descriptor', testFileWritableError, 2);161+test.serial('stdio[*] handles errors from a Node.js Writable with a file descriptor', testFileWritableError, 3);162 163 const testFileWritableOpen = async (t, index, useSingle, execaMethod) => {164 const {stream, filePath} = await createFileWriteStream();165 t.deepEqual(stream.eventNames(), []);103 unmodified lines