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(chunk-upload): Add a test for uploading multiple debug files #2274

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

szokeasaurusrex
Copy link
Member

This test ensures that the correct chunks are sent to the server when multiple debug files are being uploaded.

Note that our chunk uploading code does not guarantee that the chunks appear in any particular order within the request. Only the invariant that all chunks get uploaded (in any arbitrary order) is guaranteed. Because of this, we need to parse the request body into an unordered set of all chunks, and compare this against the set of chunks we expect to receive.

ref #2194

This test ensures that the correct chunks are sent to the server when multiple debug files are being uploaded.

Note that our chunk uploading code does not guarantee that the chunks appear in any particular order within the request. Only the invariant that all chunks get uploaded (in any arbitrary order) is guaranteed. Because of this, we need to parse the request body into an unordered set of all chunks, and compare this against the set of chunks we expect to receive.

ref #2194
@szokeasaurusrex szokeasaurusrex merged commit e6e8bf3 into master Nov 27, 2024
14 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/chunk-upload-multiple-files branch November 27, 2024 16:14
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.

2 participants