Skip to content

Fix Flaky Test SpannerPersistentPropertyImplTests#testNullColumnName#4214

Merged
jinseopkim0 merged 1 commit intoGoogleCloudPlatform:mainfrom
pem70:fix-testNullColumnName
Nov 11, 2025
Merged

Fix Flaky Test SpannerPersistentPropertyImplTests#testNullColumnName#4214
jinseopkim0 merged 1 commit intoGoogleCloudPlatform:mainfrom
pem70:fix-testNullColumnName

Conversation

@pem70
Copy link
Copy Markdown
Contributor

@pem70 pem70 commented Oct 24, 2025

Issue

Test SpannerPersistentPropertyImplTests#testNullColumnName is flaky. See #4213

Fix

This fix drops brittle message checks (including dynamic Mockito class names) and instead asserts stable parts of the error plus a regex that accepts any of the expected property names. It still verifies that an exception is thrown for a null field name on TestEntity and that the message references the entity/property, but no longer fails due to environment-dependent wording.

@pem70 pem70 requested a review from a team as a code owner October 24, 2025 00:53
@pem70 pem70 force-pushed the fix-testNullColumnName branch from ee5124b to 27453c7 Compare October 24, 2025 00:55
Copy link
Copy Markdown
Contributor

@jinseopkim0 jinseopkim0 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

@jinseopkim0 jinseopkim0 merged commit 3c72f6d into GoogleCloudPlatform:main Nov 11, 2025
10 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