Skip to content

Fix stream-related tests with Node 22.5.0 #1136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2024
Merged

Conversation

ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented Jul 22, 2024

Node 22.5.0 introduced some changes to error handling with stream.pipeline(): nodejs/node#53462

Those changes are making some of our tests fail (https://github.com/sindresorhus/execa/actions/runs/9628628974). This PR is fixing those.

@sindresorhus sindresorhus merged commit f9f7140 into main Jul 22, 2024
12 checks passed
@sindresorhus sindresorhus deleted the fix-stream-error branch July 22, 2024 22:20
@@ -149,11 +149,12 @@ test('.duplex() can pipe to errored stream with Stream.pipeline()', async t => {
outputStream.destroy(cause);

await assertPromiseError(t, pipeline(inputStream, stream, outputStream), cause);
await t.throwsAsync(finishedStream(stream));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ehmicky hope you are doing well!

I just came from the linked PR and I am wondering if you could let me know why this fix the tests (I tried to access the failure log but seems they aren't available anymore) cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy