snuyanzin commented on code in PR #22632:
URL: https://github.com/apache/flink/pull/22632#discussion_r1204316795
##########
flink-runtime/src/test/java/org/apache/flink/runtime/state/heap/HeapPriorityQueueTest.java:
##########
@@ -61,25 +62,25 @@ public void testToArray() {
HeapPriorityQueue<TestElement> timerPriorityQueue =
newPriorityQueue(1);
- Assert.assertEquals(testArray.length,
timerPriorityQueue.toArray(testArray).length);
+ assertThat(testArray).hasSameSizeAs(timerPriorityQueue);
Review Comment:
```suggestion
assertThat(testArray).hasSameSizeAs(timerPriorityQueue.toArray(testArray));
```
Seems it is the reason of CI failure
--
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]