(t, fdNumber)
| 83 | test('Destroying output stdio[*] should not make the subprocess exit', testStreamOutputDestroy, 3); |
| 84 | |
| 85 | const testStreamInputError = async (t, fdNumber) => { |
| 86 | const subprocess = getStreamInputSubprocess(fdNumber); |
| 87 | const cause = new Error('test'); |
| 88 | const stream = subprocess.stdio[fdNumber]; |
| 89 | stream.emit('error', cause); |
| 90 | stream.end(); |
| 91 | const error = await t.throwsAsync(subprocess); |
| 92 | t.is(error.cause, cause); |
| 93 | assertStreamInputError(t, error); |
| 94 | }; |
| 95 | |
| 96 | test('Errors on stdin should not make the subprocess exit', testStreamInputError, 0); |
| 97 | test('Errors on input stdio[*] should not make the subprocess exit', testStreamInputError, 3); |
nothing calls this directly
no test coverage detected