Closed omkrpt closed 5 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
ac60289
) 66.34% compared to head (e1e6289
) 66.33%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
What is the purpose of this PR
Why the test fails
uk.gov.gchq.gaffer.graph.GraphSerialisable
objects using the overriddenObject.equals()
method.serialisedProperties
are in a non-deterministic order and cause the assertion to fail.How to reproduce the test failure
I used a tool called nondex.
Expected results
Actual results We get the following failures:
We can see that the two jsons differ due to the non-deterministic order of properties, [
StoreProperties
,TestStore
].Description of fix
The flakiness can be resolved by evaluating the assertion using the overridden equals of StoreProperties instead of GraphSerialisable. We continue to compare the config and schema the same way as before.