Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattisonchao committed Dec 29, 2023
1 parent b773e5b commit d20dede
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1683,6 +1683,7 @@ public void testReplicatorWithFailedAck() throws Exception {
MessageIdImpl lastMessageId = (MessageIdImpl) topic.getLastMessageId().get();
Position lastPosition = PositionImpl.get(lastMessageId.getLedgerId(), lastMessageId.getEntryId());
ConcurrentOpenHashMap<String, Replicator> replicators = topic.getReplicators();
Awaitility.await().untilAsserted(() -> Assert.assertNotNull(replicators.get("r2")));
PersistentReplicator replicator = (PersistentReplicator) replicators.get("r2");

Awaitility.await().pollInterval(1, TimeUnit.SECONDS).timeout(30, TimeUnit.SECONDS)
Expand Down

0 comments on commit d20dede

Please sign in to comment.