This is an automated email from the ASF dual-hosted git repository.

zhaocong pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new d6791a8de26 Revert "[fix][test][branch-3.0] Fix broken 
ManagedLedgerTest.testGetNumberOfEntriesInStorage"
d6791a8de26 is described below

commit d6791a8de269498cf2f5d82a0ac54baab60f8845
Author: coderzc <zhaoc...@apache.org>
AuthorDate: Tue Apr 23 15:04:57 2024 +0800

    Revert "[fix][test][branch-3.0] Fix broken 
ManagedLedgerTest.testGetNumberOfEntriesInStorage"
    
    This reverts commit e3531e808c172ff588e36499c41746835d06904a.
---
 .../test/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/managed-ledger/src/test/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerTest.java
 
b/managed-ledger/src/test/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerTest.java
index c28a32d9ec2..c16c31a7e96 100644
--- 
a/managed-ledger/src/test/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerTest.java
+++ 
b/managed-ledger/src/test/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerTest.java
@@ -2643,7 +2643,7 @@ public class ManagedLedgerTest extends 
MockedBookKeeperTestCase {
 
         // trigger ledger rollover and wait for the new ledger created
         Awaitility.await().untilAsserted(() -> {
-           assertEquals(managedLedger.getState(), 
ManagedLedgerImpl.State.ClosedLedger);
+           assertEquals("LedgerOpened", 
WhiteboxImpl.getInternalState(managedLedger, "state").toString());
         });
         managedLedger.createLedgerAfterClosed();
         Awaitility.await().untilAsserted(() -> {

Reply via email to