(t, fdNumber)
| 97 | test('Errors on input stdio[*] should not make the subprocess exit', testStreamInputError, 3); |
| 98 | |
| 99 | const testStreamOutputError = async (t, fdNumber) => { |
| 100 | const subprocess = getStreamOutputSubprocess(fdNumber); |
| 101 | const cause = new Error('test'); |
| 102 | const stream = subprocess.stdio[fdNumber]; |
| 103 | stream.emit('error', cause); |
| 104 | const error = await t.throwsAsync(subprocess); |
| 105 | t.is(error.cause, cause); |
| 106 | assertStreamOutputError(t, fdNumber, error); |
| 107 | }; |
| 108 | |
| 109 | test('Errors on stdout should make the subprocess exit', testStreamOutputError, 1); |
| 110 | test('Errors on stderr should make the subprocess exit', testStreamOutputError, 2); |
nothing calls this directly
no test coverage detected