Skip to content

test: unflake a couple of mockserver tests#765

Open
olavloite wants to merge 1 commit into
mainfrom
unflake-mock-server-tests
Open

test: unflake a couple of mockserver tests#765
olavloite wants to merge 1 commit into
mainfrom
unflake-mock-server-tests

Conversation

@olavloite

Copy link
Copy Markdown
Collaborator

Unflakes a couple of test cases.

@olavloite olavloite requested review from a team as code owners June 22, 2026 13:40

@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 simplifies and improves the robustness of mock Spanner server tests in MockSpannerServerTests.cs. Specifically, it replaces manual casting and stack manipulation with LINQ's OfType<CommitRequest>().LastOrDefault() to retrieve the last commit request, and adds assertions to ensure the retrieved request is not null. I have no further feedback to provide as there are no review comments to assess.

@robertvoinescu-work robertvoinescu-work 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.

LGTM

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