You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had searched in the issues and found no similar issues.
What happened
I can pass this test case on linux, but there is a problem on windows. Through debug, it is found that there is a problem with the newline character of the string generated by the generateMockTableTypeResultByHand() method. This method does not consider platform independence and uses LF hard-coded as a newline
What you expected to happen
generateMockTableTypeResultByHand() generates platform-independent strings that pass the test case
How to reproduce
OS : windows 10
JDK : JDK 8
Run mvn clean test -e in command line window
Anything else
Bug info
`
[INFO] Running org.apache.dolphinscheduler.plugin.alert.email.template.DefaultHTMLTemplateTest
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.004 s <<< FAILURE! - in org.apache.dolphinscheduler.plugin.alert.email.template.DefaultHTMLTemplateTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.004 s <<< FAILURE! - in org.apache.dolphinscheduler.plugin.alert.email.template.DefaultHTMLTemplateTest
testGetMessageFromTemplate(org.apache.dolphinscheduler.plugin.alert.email.template.DefaultHTMLTemplateTest) Time elapsed: 0.004 s <<< FAILURE!
org.junit.ComparisonFailure:
]
mysql200 but was:<...er[]
mysql200
at org.apache.dolphinscheduler.plugin.alert.email.template.DefaultHTMLTemplateTest.testGetMessageFromTemplate(DefaultHTMLTemplateTest.java:44)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
Failures:
… (#10278)
* [Fix] Fix the line.separator problem for alert-plugin' test case
* [Fix] Fix the line.separator problem for alert-plugin' test case
(cherry picked from commit 62bd9d2)
ITBOX-ITBOY
pushed a commit
to ITBOX-ITBOY/dolphinscheduler
that referenced
this issue
Jul 8, 2022
…he#10277 (apache#10278)
* [Fix] Fix the line.separator problem for alert-plugin' test case
* [Fix] Fix the line.separator problem for alert-plugin' test case
Search before asking
What happened
I can pass this test case on linux, but there is a problem on windows. Through debug, it is found that there is a problem with the newline character of the string generated by the
generateMockTableTypeResultByHand()
method. This method does not consider platform independence and usesLF
hard-coded as a newlineWhat you expected to happen
generateMockTableTypeResultByHand()
generates platform-independent strings that pass the test caseHow to reproduce
OS : windows 10
JDK : JDK 8
Run
mvn clean test -e
in command line windowAnything else
Bug info
`
[INFO] Running org.apache.dolphinscheduler.plugin.alert.email.template.DefaultHTMLTemplateTest
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.004 s <<< FAILURE! - in org.apache.dolphinscheduler.plugin.alert.email.template.DefaultHTMLTemplateTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.004 s <<< FAILURE! - in org.apache.dolphinscheduler.plugin.alert.email.template.DefaultHTMLTemplateTest
testGetMessageFromTemplate(org.apache.dolphinscheduler.plugin.alert.email.template.DefaultHTMLTemplateTest) Time elapsed: 0.004 s <<< FAILURE!
org.junit.ComparisonFailure:
mysql200 but was:<...er[] mysql200 at org.apache.dolphinscheduler.plugin.alert.email.template.DefaultHTMLTemplateTest.testGetMessageFromTemplate(DefaultHTMLTemplateTest.java:44) [INFO] [INFO] Results: [INFO] [ERROR] Failures: Failures:]
]
mysql200 but was:<...er[] mysql200 [INFO] [ERROR] Tests run: 10, Failures: 1, Errors: 0, Skipped: 0 Tests run: 10, Failures: 1, Errors: 0, Skipped: 0[INFO]
`
Version
dev
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: