Fix Flaky-test: ManagedLedgerBkTest.asyncMarkDeleteAndClose.
@@ -330,11 +330,11 @@ public class ManagedLedgerBkTest extends BookKeeperClusterTestCase {
}, null);
}
+ counter.await();
+
cursor.close();
ledger.close();
- counter.await();
-
assertFalse(gotException.get());
}
