This is an automated email from the ASF dual-hosted git repository. lhotari pushed a commit to branch branch-3.0 in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit 5fd96d32c1a70636ca5246e66ebf9f599b7191e7 Author: Yunze Xu <[email protected]> AuthorDate: Mon Nov 18 10:18:30 2024 +0800 [fix][broker] Fix failed TokenAuthenticatedProducerConsumerTest (#23602) (cherry picked from commit 27158532de26d40e7a402769e73ddd3be43f0623) --- .../pulsar/client/api/TokenAuthenticatedProducerConsumerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pulsar-broker/src/test/java/org/apache/pulsar/client/api/TokenAuthenticatedProducerConsumerTest.java b/pulsar-broker/src/test/java/org/apache/pulsar/client/api/TokenAuthenticatedProducerConsumerTest.java index 8f56d8b24ce..f559513b1fe 100644 --- a/pulsar-broker/src/test/java/org/apache/pulsar/client/api/TokenAuthenticatedProducerConsumerTest.java +++ b/pulsar-broker/src/test/java/org/apache/pulsar/client/api/TokenAuthenticatedProducerConsumerTest.java @@ -190,14 +190,14 @@ public class TokenAuthenticatedProducerConsumerTest extends ProducerConsumerBase } @Test(dataProvider = "provider") - public void testTopicNotFound(boolean useTcpServiceUrl, boolean useCorrectToken) throws Exception { + public void testTenantNotExist(boolean useTcpServiceUrl, boolean useCorrectToken) throws Exception { final var operationTimeoutMs = 10000; final var url = useTcpServiceUrl ? pulsar.getBrokerServiceUrl() : pulsar.getWebServiceAddress(); final var token = useCorrectToken ? ADMIN_TOKEN : USER_TOKEN; @Cleanup final var client = PulsarClient.builder().serviceUrl(url) .operationTimeout(operationTimeoutMs, TimeUnit.MILLISECONDS) .authentication(AuthenticationFactory.token(token)).build(); - final var topic = "my-property/not-exist/tp"; // the namespace does not exist + final var topic = "non-exist/not-exist/tp"; // the namespace does not exist var start = System.currentTimeMillis(); try { client.newProducer().topic(topic).create();
