Closed
Description
Describe the bug
The test assertion in org.apache.helix.rest.server.TestPerInstanceAccessor#testGetAllInstances is flaky.
These tests compare two sets for containing the same elements in the same order – but it is not deterministic in which order the elements are returned from a set – resulting in a flaky test.
To Reproduce
run:
mvn -pl helix-rest edu.illinois:nondex-maven-plugin:2.1.1:nondex -Dtest=org.apache.helix.rest.server.TestPerInstanceAccessor -DnondexSeed=933178
Expected behavior
Test should not be flaky – it should pass or fail (in the current case it should pass)
Additional context
non