nodece commented on code in PR #22991: URL: https://github.com/apache/pulsar/pull/22991#discussion_r1662925410
########## pulsar-broker/src/test/java/org/apache/pulsar/client/api/TokenExpirationProduceConsumerTest.java: ########## @@ -132,6 +136,29 @@ private PulsarAdmin getAdmin(String token) throws Exception { return clientBuilder.build(); } + @Test + public void testNonPersistentTopic() throws Exception { Review Comment: ```java @Test public void testNonPersistentTopic() throws Exception { internalSetUpForNamespace(); String topic = "non-persistent://my-property/my-ns/test-token-non-persistent"; PulsarClient pulsarClient = pulsar.getClient(); @Cleanup Consumer<byte[]> consumer = pulsarClient.newConsumer().topic(topic) .subscriptionInitialPosition(SubscriptionInitialPosition.Earliest) .subscriptionName("test").subscribe(); @Cleanup Producer<byte[]> producer = pulsarClient.newProducer().topic(topic).create(); byte[] msg = "Hello".getBytes(StandardCharsets.UTF_8); producer.send(msg); Message<byte[]> receive = consumer.receive(3, TimeUnit.SECONDS); assertNotNull(receive); assertEquals(receive.getData(), msg); } ``` -- 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: commits-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org