Skip to content
Myr

Fix stream-related tests with Node 22.5.0 (#1136)

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

authored by ehmicky · committed by GitHub · parent 6c6e861 · Browse files · 3 files+12 added−8 removed
This commit

State

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

Diff stats

3 files+12 added−8 removed

  • tests:+12 added−8 removed

3 files+12 added−8 removed

modified:test/convert/duplex.js+6 added-4 removed
modified:test/convert/readable.js+3 added-2 removed
230 unmodified lines
231 const cause = new Error('test');232 outputStream.destroy(cause);233234 await assertPromiseError(t, pipeline(stream, outputStream), cause);235 await t.throwsAsync(finishedStream(stream));236236 const error = await assertStreamError(t, stream, {cause});237 const error = await assertStreamError(t, stream, cause);238 await assertStreamReadError(t, outputStream, cause);238 await assertSubprocessError(t, subprocess, error);239 await assertSubprocessError(t, subprocess, {cause: error});240});241242test('.readable() can be used with Stream.compose()', async t => {243 const subprocess = getReadableSubprocess();
217 unmodified lines
modified:test/convert/writable.js+3 added-2 removed
240 unmodified lines
241 const cause = new Error('test');242 inputStream.destroy(cause);243244 await assertPromiseError(t, pipeline(inputStream, stream), cause);245 await t.throwsAsync(finishedStream(stream));246247 await assertStreamError(t, inputStream, cause);247 const error = await assertStreamError(t, stream, {cause});248 await assertSubprocessError(t, subprocess, error);248 const error = await assertStreamError(t, stream, cause);249 await assertSubprocessError(t, subprocess, {cause: error});250});251252test('.writable() can be used with Stream.compose()', async t => {253 const subprocess = getWritableSubprocess();
142 unmodified lines