lhotari commented on a change in pull request #9420:
URL: https://github.com/apache/pulsar/pull/9420#discussion_r568380205
##########
File path:
pulsar-broker/src/test/java/org/apache/pulsar/broker/service/ConsumedLedgersTrimTest.java
##########
@@ -142,6 +145,12 @@ public void testConsumedLedgersTrimNoSubscriptions()
throws Exception {
// the lastMessageId is still on the previous ledger
restartBroker();
// force load topic
+ Awaitility.await().untilAsserted(() -> {
+ try {
+
assertNotNull(pulsar.getBrokerService().getTopicIfExists(topicName).get(3,
TimeUnit.SECONDS).get());
+ } catch (Exception ignored) {
Review comment:
Actually it does terminate the test, I just checked, so I'll take this
back. The original approach was fine, my advice was bad. I'm sorry about that.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]