Skip to content

fix(Storage): Resolve race condition and flakiness in ListObjectsTest.ResumeWithPageToken#12

Open
mahendra-google wants to merge 1 commit into
mainfrom
fix/flaky-test-resumewithpagetoken
Open

fix(Storage): Resolve race condition and flakiness in ListObjectsTest.ResumeWithPageToken#12
mahendra-google wants to merge 1 commit into
mainfrom
fix/flaky-test-resumewithpagetoken

Conversation

@mahendra-google

@mahendra-google mahendra-google commented Apr 28, 2026

Copy link
Copy Markdown
Owner

This PR addresses a flakiness in ListObjectsTest.ResumeWithPageToken. The test ListObjectsTest.ListObjectsMatchingContextKeyValuePair was previously using ReadBucket , which is susceptible to interference from the ListObjectsTest.ResumeWithPageToken test.

Changes:

Switched the test bucket from ReadBucket to SingleVersionBucket to ensure a stable object count during the pagination in ListObjectsTest.ResumeWithPageToken test.

This ensures the test is isolated and prevents failures caused by unexpected objects appearing in the results Assert.Equal() Failure: Values differ Expected: 6 Actual: 7 .

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

Copy link
Copy Markdown

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 updates the ListObjectsMatchingContextKeyValuePair integration test in ListObjectsTest.cs to use SingleVersionBucket instead of ReadBucket. I have no feedback to provide.

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