Commit 3c72f6d
authored
Fix Flaky Test
## 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.SpannerPersistentPropertyImplTests#testNullColumnName (#4214)1 parent b381f29 commit 3c72f6d
File tree
1 file changed
+6
-7
lines changed- spring-cloud-gcp-data-spanner/src/test/java/com/google/cloud/spring/data/spanner/core/mapping
1 file changed
+6
-7
lines changedLines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
0 commit comments