Skip to content

flaky test in org.apache.helix.rest.server.TestResourceAccessor#testGetResources #2643

Closed
hofi1/helix
#3
@hofi1

Description

@hofi1

Describe the bug

The test org.apache.helix.rest.server.TestResourceAccessor#testGetResources has a flaky assertion.
The test compares 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

It was found using the NonDex engine and can be reproduced using the following command:

mvn -pl helix-rest edu.illinois:nondex-maven-plugin:2.1.1:nondex -Dtest=org.apache.helix.rest.server.TestResourceAccessor

Expected behavior

It is expected that the test checks if the collections contain the same elements in any order and not in a specific order.

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