This is an automated email from the ASF dual-hosted git repository.

yubiao pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new 54382a85a18 [fix][test] fix bug for 
testcase(PersistentTopicsTest#testExamineMessage) (#20154)
54382a85a18 is described below

commit 54382a85a188e700cd6abf1374df571d9eb4b9af
Author: StevenLuMT <lsj_sd...@126.com>
AuthorDate: Sat Apr 22 21:22:26 2023 +0800

    [fix][test] fix bug for testcase(PersistentTopicsTest#testExamineMessage) 
(#20154)
    
    Co-authored-by: lushiji <lush...@didiglobal.com>
    (cherry picked from commit c58da14968f27cf2a4813db01f387b61a5a03636)
---
 .../test/java/org/apache/pulsar/broker/admin/PersistentTopicsTest.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/PersistentTopicsTest.java
 
b/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/PersistentTopicsTest.java
index 6949fe931ca..f80d9863a26 100644
--- 
a/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/PersistentTopicsTest.java
+++ 
b/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/PersistentTopicsTest.java
@@ -1144,6 +1144,7 @@ public class PersistentTopicsTest extends 
MockedPulsarServiceBaseTest {
         // Check examine message not allowed on partitioned topic.
         try {
             admin.topics().examineMessage(topicName, "earliest", 1);
+            Assert.fail("fail to check examine message not allowed on 
partitioned topic");
         } catch (PulsarAdminException e) {
             Assert.assertEquals(e.getMessage(),
                     "Examine messages on a partitioned topic is not allowed, 
please try examine message on specific "

Reply via email to