-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flaky test assertions in org.apache.helix.rest.server.TestResourceAssignmentOptimizerAccessor#testComputePartitionAssignment #2640
Closed
Labels
bug
Something isn't working
Comments
hofi1
pushed a commit
to hofi1/helix
that referenced
this issue
Oct 5, 2023
in test TestResourceAssignmentOptimizerAccessor #testComputePartitionAssignment
hofi1
pushed a commit
to hofi1/helix
that referenced
this issue
Oct 5, 2023
in test TestResourceAssignmentOptimizerAccessor #testComputePartitionAssignment
hofi1
pushed a commit
to hofi1/helix
that referenced
this issue
Oct 13, 2023
in test TestResourceAssignmentOptimizerAccessor #testComputePartitionAssignment
hofi1
pushed a commit
to hofi1/helix
that referenced
this issue
Oct 13, 2023
in test TestResourceAssignmentOptimizerAccessor #testComputePartitionAssignment
hofi1
pushed a commit
to hofi1/helix
that referenced
this issue
Oct 13, 2023
in test TestResourceAssignmentOptimizerAccessor #testComputePartitionAssignment
hofi1
pushed a commit
to hofi1/helix
that referenced
this issue
Oct 13, 2023
in test TestResourceAssignmentOptimizerAccessor #testComputePartitionAssignment
hofi1
pushed a commit
to hofi1/helix
that referenced
this issue
Oct 13, 2023
in test TestResourceAssignmentOptimizerAccessor #testComputePartitionAssignment
hofi1
pushed a commit
to hofi1/helix
that referenced
this issue
Oct 13, 2023
in test TestResourceAssignmentOptimizerAccessor #testComputePartitionAssignment
Merged
1 task
junkaixue
pushed a commit
that referenced
this issue
Feb 27, 2024
in test TestResourceAssignmentOptimizerAccessor #testComputePartitionAssignment Co-authored-by: simonh5 <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The test org.apache.helix.rest.server.TestResourceAssignmentOptimizerAccessor#testComputePartitionAssignment is flaky. The JSON strings in the assertion can change and sometime not pass the assertions.
JSON may change the order of the elements in arrays as well as elements on the same level – this leads to the flaky test.
To Reproduce
Expected behavior
Test should not be flaky – it should pass or fail (in the current case it should pass)
Additional context
Change the assertions from JUNIT-Assertions to JSONAssertions.
The text was updated successfully, but these errors were encountered: