Skip to content

Commit bbc81d2

Browse files
committed
[fix][broker] Fix tests
1 parent 5d6a41d commit bbc81d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

managed-ledger/src/test/java/org/apache/bookkeeper/mledger/impl/ManagedCursorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ void testPersistentMarkDeleteIfSwitchCursorLedgerFailed() throws Exception {
394394
ManagedCursorImpl cursorRecovered = (ManagedCursorImpl) ml.openCursor(cursorName);
395395
assertThat(cursorRecovered.getPersistentMarkDeletedPosition()).isGreaterThanOrEqualTo(lastEntry);
396396
// If previous ledger is trimmed, Cursor: ManagedCursorImpl{ledger=ml_test, name=c1, ackPos=12:0, readPos=15:0}
397-
// does not exist in the managed-ledger.
397+
// does not exist in the managed-ledger. Recovered cursor's position will not be moved forward.
398398
// TODO should be handled in ledger trim process.
399399
assertThat(cursorRecovered.getMarkDeletedPosition()).isGreaterThanOrEqualTo(lastEntry);
400400

@@ -4633,7 +4633,7 @@ public void readEntriesFailed(ManagedLedgerException exception, Object ctx) {
46334633
}
46344634

46354635
@Test
4636-
public void testLazyCursorLedgerCreation() throws Exception {
4636+
public void testEagerCursorLedgerCreation() throws Exception {
46374637
ManagedLedgerConfig managedLedgerConfig = new ManagedLedgerConfig();
46384638
ManagedLedgerImpl ledger = (ManagedLedgerImpl) factory
46394639
.open("testLazyCursorLedgerCreation", managedLedgerConfig);

0 commit comments

Comments
 (0)