spuru9 commented on code in PR #28561:
URL: https://github.com/apache/flink/pull/28561#discussion_r3566748856
##########
flink-libraries/flink-state-processing-api/src/test/java/org/apache/flink/state/api/input/ListStateInputFormatTest.java:
##########
@@ -84,12 +83,9 @@ public void testReadListOperatorState() throws Exception {
results.add(format.nextRecord(0));
}
- results.sort(Comparator.naturalOrder());
-
- Assert.assertEquals(
- "Failed to read correct list state from state backend",
- Arrays.asList(1, 2, 3),
- results);
+ assertThat(results)
+ .as("Failed to read correct list state from state backend")
+ .containsExactlyInAnyOrder(1, 2, 3);
Review Comment:
Correct — the old sort was just to normalize before `assertEquals`, not an
order check; `containsExactlyInAnyOrder` preserves the same order-agnostic
content check.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]