Skip to content
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

test(upload-client): allow large byte uploads #1532

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

StefanoDeVuono
Copy link

@StefanoDeVuono StefanoDeVuono commented Aug 17, 2024

There was an issue with large byte uploads in tests highlighted in issue 1518

This commit fixes the issue by first converting bytes to UnixFS stream before making CAR object in packages/upload-client/test/helpers/car.js.

Included is a video of the tests passing with both the current byte size (128) and the previously failing byte size (2_000_0000):

test.mp4

There was an issue with large byte uploads in tests.

This commit fixes the issue by first converting bytes to UnixFS stream before making CAR object in packages/upload-client/test/helpers/car.js
@StefanoDeVuono StefanoDeVuono marked this pull request as ready for review August 17, 2024 04:34
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