Skip to content

Flaky test assertion in org.apache.helix.rest.server.TestPerInstanceAccessor#testGetAllMessages #2667

Closed
hofi1/helix
#5
@hofi1

Description

@hofi1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions