codelipenghui commented on code in PR #16719:
URL: https://github.com/apache/pulsar/pull/16719#discussion_r927412412
##########
pulsar-broker/src/test/java/org/apache/pulsar/client/impl/PatternTopicsConsumerImplTest.java:
##########
@@ -514,6 +509,38 @@ public void testStartEmptyPatternConsumer() throws
Exception {
producer3.close();
}
+ @Test(timeOut = testTimeout)
+ public void testAutoSubscribePatterConsumerFromBrokerWatcher() throws
Exception {
+ String key = "AutoSubscribePatternConsumer";
+ String subscriptionName = "my-ex-subscription-" + key;
+
+ Pattern pattern =
Pattern.compile("persistent://my-property/my-ns/pattern-topic.*");
+ Consumer<byte[]> consumer = pulsarClient.newConsumer()
Review Comment:
Please close the consumer after the test.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]