Skip to content

fix: handle empty stream error in e2e test route#1039

Merged
vvo merged 1 commit intomainfrom
vvo/fix-e2e-empty-stream
Apr 2, 2026
Merged

fix: handle empty stream error in e2e test route#1039
vvo merged 1 commit intomainfrom
vvo/fix-e2e-empty-stream

Conversation

@vvo
Copy link
Copy Markdown
Member

@vvo vvo commented Apr 2, 2026

Summary

Fixes the failing e2e tests from #1037.

The empty stream multipart e2e test route didn't catch the expected server error ("Invalid body" — the server correctly rejects a 0-part multipart upload). The unhandled error caused a 500, failing the toBeLessThan(500) assertion.

Fix: Catch the error in the route and return { resolved: true }. The test now checks resolved === true — the point is that put() resolved (no deadlock), not that the upload succeeded.

🤖 Generated with Claude Code

The server rejects empty multipart uploads with "Invalid body". Catch
the error in the route and return { resolved: true } so the test can
verify the upload resolved (no deadlock) regardless of the server
response.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 2, 2026

⚠️ No Changeset found

Latest commit: d7f61a1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vercel-storage-next-integration-test-suite Ready Ready Preview Apr 2, 2026 2:42pm

Request Review

@vvo vvo marked this pull request as ready for review April 2, 2026 14:42
@vvo vvo merged commit 94f7337 into main Apr 2, 2026
10 checks passed
@vvo vvo deleted the vvo/fix-e2e-empty-stream branch April 2, 2026 14:45
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.

1 participant