Skip to content

chore(storage): remove settable boundary string#212

Merged
brianquinlan merged 5 commits intogoogleapis:mainfrom
brianquinlan:boundary
Mar 23, 2026
Merged

chore(storage): remove settable boundary string#212
brianquinlan merged 5 commits intogoogleapis:mainfrom
brianquinlan:boundary

Conversation

@brianquinlan
Copy link
Copy Markdown
Contributor

The ability to set a fixed boundary string was previously required because the HTTP recording/replying system required deterministic payloads.

The ability to set a fixed boundary string was previously required because the HTTP recording/replying system required deterministic payloads.
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the ability to set a fixed boundary string for multipart requests, a feature previously used for testing to ensure deterministic payloads. The changes involve deleting the fixedBoundaryString global variable and its related logic in pkgs/google_cloud_storage/lib/src/file_upload.dart, along with removing its usage across multiple test files. This refactoring successfully eliminates mutable global state that was specific to testing, improving code isolation and maintainability.

@brianquinlan brianquinlan merged commit 653dcec into googleapis:main Mar 23, 2026
21 checks passed
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