Skip to content

Commit

Permalink
[fix][test] fix bug for testcase(PersistentTopicsTest#testExamineMess…
Browse files Browse the repository at this point in the history
…age) (apache#20154)

Co-authored-by: lushiji <lushiji@didiglobal.com>
  • Loading branch information
StevenLuMT and lushiji authored Apr 22, 2023
1 parent 6036dcc commit c58da14
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,7 @@ public void testExamineMessage() throws Exception {
// 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 "
Expand Down

0 comments on commit c58da14

Please sign in to comment.