This is an automated email from the ASF dual-hosted git repository.
zihaoxiang pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 62bd9d2c4c [Fix] Fix the line.separator problem for alert-plugin' test
case #10277 (#10278)
62bd9d2c4c is described below
commit 62bd9d2c4c0ee110687d1454a34209a77f175d94
Author: juzimao <[email protected]>
AuthorDate: Sun May 29 18:44:26 2022 +0800
[Fix] Fix the line.separator problem for alert-plugin' test case #10277
(#10278)
* [Fix] Fix the line.separator problem for alert-plugin' test case
* [Fix] Fix the line.separator problem for alert-plugin' test case
---
.../plugin/alert/email/template/DefaultHTMLTemplateTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/test/java/org/apache/dolphinscheduler/plugin/alert/email/template/DefaultHTMLTemplateTest.java
b/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/test/java/org/apache/dolphinscheduler/plugin/alert/email/template/DefaultHTMLTemplateTest.java
index d53c95bfbd..bc357cd34a 100644
---
a/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/test/java/org/apache/dolphinscheduler/plugin/alert/email/template/DefaultHTMLTemplateTest.java
+++
b/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/test/java/org/apache/dolphinscheduler/plugin/alert/email/template/DefaultHTMLTemplateTest.java
@@ -76,7 +76,7 @@ public class DefaultHTMLTemplateTest {
return EmailConstants.HTML_HEADER_PREFIX
+ "<thead>"
+ "<tr><th>mysql service name</th><th>mysql
address</th><th>database client connections</th><th>port</th><th>no index of
number</th></tr>"
- + "</thead>\n"
+ + "</thead>"+System.getProperty("line.separator")
+
"<tr><td>mysql200</td><td>192.168.xx.xx</td><td>190</td><td>3306</td><td>80</td></tr>"
+
"<tr><td>mysql210</td><td>192.168.xx.xx</td><td>90</td><td>3306</td><td>10</td></tr>"
+ EmailConstants.TABLE_BODY_HTML_TAIL;