-
-
Notifications
You must be signed in to change notification settings - Fork 696
fix: error stream instead of canceling #4804
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
base: main
Are you sure you want to change the base?
fix: error stream instead of canceling #4804
Conversation
Co-authored-by: Matteo Collina <hello@matteocollina.com>
| controller.abort() | ||
|
|
||
| // Erroring a stream (see: https://fetch.spec.whatwg.org/#abort-fetch step 5) does not disturb it. | ||
| t.assert.strictEqual(response.bodyUsed, false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In #4801 Claude, for some reason, thought bodyUsed was true here. All of the other tests are unchanged.
| return Promise.reject(new TypeError('Body is unusable: Body has already been read')) | ||
| } | ||
|
|
||
| if (state.aborted) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4804 +/- ##
==========================================
+ Coverage 93.24% 93.25% +0.01%
==========================================
Files 109 109
Lines 34100 34090 -10
==========================================
- Hits 31796 31791 -5
+ Misses 2304 2299 -5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|

closes #4801
fixes #4799