Crazylychee commented on code in PR #9440:
URL: https://github.com/apache/rocketmq/pull/9440#discussion_r2127867558
##########
common/src/test/java/org/apache/rocketmq/common/MixAllTest.java:
##########
@@ -85,4 +85,43 @@ public void testIsLmq() {
testLmq = "%LMQ%GID_TEST";
assertThat(MixAll.isLmq(testLmq)).isTrue();
}
+
+ @Test
+ public void testAdjustConfigForPlatform_OnWindows() {
+ if (MixAll.isWindows()) {
+ String configWithSingleBackslash =
"data\\path\\config\\file.properties";
+ String adjusted =
MixAll.adjustConfigForPlatform(configWithSingleBackslash);
+
assertThat(adjusted).isEqualTo("data\\\\path\\\\config\\\\file.properties");
Review Comment:
Oh, I understand what you mean, that is, I don't need to add the escape
character for the configuration that already has two escape characters like \\.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]