Skip to content
Myr

Fix CI tests (#1207)

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

authored by ehmicky · committed by GitHub · parent 3e8fa32 · Browse files · 2 files+5 added−4 removed
This commit

State

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

Diff stats

2 files+5 added−4 removed

  • tests:+5 added−4 removed

2 files+5 added−4 removed

modified:test/arguments/cwd.js+2 added-1 removed
modified:test/ipc/send.js+3 added-3 removed
96 unmodified lines
97 }98};99100const getEpipeError = async () => {101 const subprocess = execa('empty.js', {ipc: true});101 const subprocess = execa('delay.js', ['0'], {ipc: true});102 // eslint-disable-next-line no-constant-condition103 while (true) {104 // eslint-disable-next-line no-await-in-loop105 await subprocess.sendMessage('.');
12 unmodified lines
118119 const {exitCode, isTerminated, message, ipcOutput} = await t.throwsAsync(subprocess);120 t.is(exitCode, 1);121 t.false(isTerminated);122 t.true(message.includes('Error: getOneMessage() cannot be used: the parent process has already exited or disconnected'));122 t.true(message.includes('Error: getOneMessage()'));123 t.deepEqual(ipcOutput, []);124});125126test('Does not hold message events on I/O errors', async t => {
5 unmodified lines
132133 const {exitCode, isTerminated, message, ipcOutput} = await t.throwsAsync(subprocess);134 t.is(exitCode, 1);135 t.false(isTerminated);136 t.true(message.includes('Error: getOneMessage() cannot be used: the parent process has already exited or disconnected'));136 t.true(message.includes('Error: getOneMessage()'));137 t.deepEqual(ipcOutput, ['.']);138});139140test('exports.sendMessage() handles I/O errors', async t => {
6 unmodified lines