(t, fdNumber)
| 58 | test('Aborting output stdio[*] should not make the subprocess exit', testStreamOutputAbort, 3); |
| 59 | |
| 60 | const testStreamInputDestroy = async (t, fdNumber) => { |
| 61 | const subprocess = getStreamInputSubprocess(fdNumber); |
| 62 | const cause = new Error('test'); |
| 63 | subprocess.stdio[fdNumber].destroy(cause); |
| 64 | const error = await t.throwsAsync(subprocess); |
| 65 | t.is(error.cause, cause); |
| 66 | assertStreamInputError(t, error); |
| 67 | }; |
| 68 | |
| 69 | test('Destroying stdin should not make the subprocess exit', testStreamInputDestroy, 0); |
| 70 | test('Destroying input stdio[*] should not make the subprocess exit', testStreamInputDestroy, 3); |
nothing calls this directly
no test coverage detected