snuyanzin commented on code in PR #19916:
URL: https://github.com/apache/flink/pull/19916#discussion_r963120183


##########
flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/operators/GenericWriteAheadSinkTest.java:
##########
@@ -122,15 +123,15 @@ protected void verifyResultsWhenReScaling(
         }
 
         Collections.sort(sink.values);
-        Assert.assertArrayEquals(list.toArray(), sink.values.toArray());
+        assertThat(sink.values.toArray()).containsExactly(list.toArray());

Review Comment:
   I found a bit different way 
   ```java
   assertThat(sink.values).containsExactlyInAnyOrderElementsOf(list);
   ```
   and there is no need to do sort one line eralier



-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to