(t, fdNumber)
| 70 | test('Destroying input stdio[*] should not make the subprocess exit', testStreamInputDestroy, 3); |
| 71 | |
| 72 | const testStreamOutputDestroy = async (t, fdNumber) => { |
| 73 | const subprocess = getStreamOutputSubprocess(fdNumber); |
| 74 | const cause = new Error('test'); |
| 75 | subprocess.stdio[fdNumber].destroy(cause); |
| 76 | const error = await t.throwsAsync(subprocess); |
| 77 | t.is(error.cause, cause); |
| 78 | assertStreamOutputError(t, fdNumber, error); |
| 79 | }; |
| 80 | |
| 81 | test('Destroying stdout should not make the subprocess exit', testStreamOutputDestroy, 1); |
| 82 | test('Destroying stderr should not make the subprocess exit', testStreamOutputDestroy, 2); |
nothing calls this directly
no test coverage detected