Skip to content

Commit

Permalink
flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
liangyepianzhou committed Feb 16, 2024
1 parent 2e6a34f commit f94669b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,9 @@ public void testDeleteUselessLogDataWhenSubCursorMoved() throws Exception {
Message<byte[]> message2 = consumer.receive(5, TimeUnit.SECONDS);
consumer.acknowledgeAsync(message2.getMessageId(), transaction2).get();

Assert.assertEquals(pendingAckLogIndex.size(), 0);
Awaitility.await().untilAsserted(() -> {
Assert.assertEquals(pendingAckLogIndex.size(), 0);
});
maxIndexLag = (long) field4.get(pendingAckStore);
Assert.assertEquals(maxIndexLag, 5);
}
Expand Down

0 comments on commit f94669b

Please sign in to comment.