Skip to content

Conversation

@CharlesZKQ
Copy link
Contributor

In org.springframework.data.jdbc.repository.query.PartTreeJdbcQueryUnitTests, the test createsQueryByEmbeddedObject() is flaky due to the non-deterministic property of getDeclatedFields() (please refer document). it is internally invoked by createQuery(). I fixed by comparing the actual generated query with two possible queries (set as expected queries), when invoking getQuery(), it will return either one of two possible result, which eliminates the flakiness.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 22, 2021
@schauder
Copy link
Contributor

Please incorporate this within #1097

@schauder schauder closed this Nov 24, 2021
CharlesZKQ added a commit to CharlesZKQ/spring-data-jdbc that referenced this pull request Nov 30, 2021
…nsure the result set of conditions is the one we expect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants