You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "RongtongJin (via GitHub)" <gi...@apache.org> on 2023/04/29 11:15:52 UTC

[GitHub] [rocketmq] RongtongJin commented on a diff in pull request #6659: [ISSUE #6653] Remove duplicate code about validate topic

RongtongJin commented on code in PR #6659:
URL: https://github.com/apache/rocketmq/pull/6659#discussion_r1181060372


##########
client/src/test/java/org/apache/rocketmq/client/ValidatorsTest.java:
##########
@@ -58,7 +58,7 @@ public void testCheckTopic_HasIllegalCharacters() {
             Validators.checkTopic(illegalTopic);
             failBecauseExceptionWasNotThrown(MQClientException.class);
         } catch (MQClientException e) {
-            assertThat(e).hasMessageStartingWith(String.format("The specified topic[%s] contains illegal characters, allowing only %s", illegalTopic, "^[%|a-zA-Z0-9_-]+$"));

Review Comment:
   Do we need to maintain the previous remark so that users can better know which topic does not comply with the rules?



-- 
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-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org