Skip to content

Commit

Permalink
Fix Flaky test BacklogQuotaManagerTest.testConsumerBacklogEvictionTim…
Browse files Browse the repository at this point in the history
…eQuotaWithEmptyLedger (#13724)

(cherry picked from commit 1fd4490)
  • Loading branch information
gaozhangmin authored and codelipenghui committed Jan 18, 2022
1 parent 2e78d93 commit f3bf499
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ public void testConsumerBacklogEvictionTimeQuotaWithEmptyLedger() throws Excepti
consumer.receive();

admin.topics().unload(topic);
Awaitility.await().until(consumer::isConnected);
PersistentTopicInternalStats internalStats = admin.topics().getInternalStats(topic);
assertEquals(internalStats.ledgers.size(), 2);
assertEquals(internalStats.ledgers.get(1).entries, 0);
Expand Down

0 comments on commit f3bf499

Please sign in to comment.