Skip to content

Commit

Permalink
[fix][test][branch-3.2] Fix DeduplicationDisabledBrokerLevelTest. Adj…
Browse files Browse the repository at this point in the history
…ust to PR 22034 presence.
  • Loading branch information
lhotari committed May 14, 2024
1 parent 41610ee commit c2532b9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,8 @@ public void testSnapshotCounterAfterUnload() throws Exception {
Awaitility.await().untilAsserted(() -> {
int snapshotCounter3 = WhiteboxImpl.getInternalState(deduplication2, "snapshotCounter");
assertTrue(snapshotCounter3 < brokerDeduplicationEntriesInterval);
// Since https://github.com/apache/pulsar/pull/22034 has not been cherry-pick into branch-3.0, there
// should be 2 ledgers.
// Verify: the previous ledger will be removed because all messages have been acked.
assertEquals(ml2.getLedgersInfo().size(), 2);
assertEquals(ml2.getLedgersInfo().size(), 1);
});

// cleanup.
Expand Down

0 comments on commit c2532b9

Please sign in to comment.