Skip to content

Flaky Test ConverterAwareMappingSpannerEntityReaderTests#readNotFoundColumnTest #4211

@pem70

Description

@pem70

Description

The test readNotFoundColumnTest is flaky. It asserts an exact exception message string, which can vary across environments or library versions depending on how Cloud Spanner formats error messages or column references. While the exception type remains consistent, differences in message text (column naming or formatting) can cause intermittent failures even though the behavior being tested is correct.

How to Reproduce

Run the test with the NonDex plugin to randomize iteration order:

mvn -pl spring-cloud-gcp-data-spanner edu.illinois:nondex-maven-plugin:2.1.7:nondex -Dtest=com.google.cloud.spring.data.spanner.core.convert.ConverterAwareMappingSpannerEntityReaderTests#readNotFoundColumnTest

Additional

I have a fix ready for this test. I'll add it to discussion later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions