Skip to content

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

Open
StefanoDeVuono wants to merge 1 commit intostoracha:mainfrom
StefanoDeVuono:chore/fix-car-cid-in-test
Open

test(upload-client): allow large byte uploads#1532
StefanoDeVuono wants to merge 1 commit intostoracha:mainfrom
StefanoDeVuono:chore/fix-car-cid-in-test

Conversation

@StefanoDeVuono
Copy link
Copy Markdown

@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 force-pushed the chore/fix-car-cid-in-test branch from 572cd3a to 0a554cc Compare August 17, 2024 04:34
@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