TedCraft opened a new issue, #33789: URL: https://github.com/apache/shardingsphere/issues/33789
## Bug Report **For English only**, other languages will not accept. Before report a bug, make sure you have: - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues). - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview). Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot reproduce it on current information, we will **close it**. Please answer these questions before submitting your issue. Thanks! ### Which version of ShardingSphere did you use? Latest. ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy? ### Expected behavior Tests passed, build completed successfully. ### Actual behavior PostgreSQLTablePropertiesLoaderTest.assertLoad(), PostgreSQLPipelineFreemarkerManagerTest.assertGetSQLByDefaultVersion() and PostgreSQLIndexSQLGeneratorTest.assertGenerate() tests fails. ### Reason analyze (If you can) Tests fails because of using System.lineSeparator() in mocking and asserting SQL strings. Windows uses \r\n as a line separator, when Linux uses \n and corresponding .ftl files also uses \n. For exmaple, in PostgreSQLIndexGeneratorTest executeQuery function is mocked. When it contains string ```"SELECT DISTINCT ON(cls.relname) cls.oid, cls.relname as name," + System.lineSeparator() + "(SELECT (CASE WHEN count(i.inhrelid) > 0 THEN true ELSE false END)"``` it should return getNodesResultSet. In Linux systems this string is looking exactly as corresponding string in nodes.ftl file, but on Windows behaviour of System.lineSeparator() is different and as a result executeQuery returns null. ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc. Run postgresql data-pipeline tests on Windows machine. ### Example codes for reproduce this issue (such as a github link). -- 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]
