This is an automated email from the ASF dual-hosted git repository.
totalo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new a8ad9e1c42d Fixes ShardingSphereURLLoadEngineTest failure on Windows
11 (#30354)
a8ad9e1c42d is described below
commit a8ad9e1c42d292c92693d00c5b8899b7bb84b840
Author: Ling Hengqian <[email protected]>
AuthorDate: Thu Feb 29 23:31:43 2024 +0800
Fixes ShardingSphereURLLoadEngineTest failure on Windows 11 (#30354)
---
.../shardingsphere/infra/url/core/ShardingSphereURLLoadEngineTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/infra/url/core/src/test/java/org/apache/shardingsphere/infra/url/core/ShardingSphereURLLoadEngineTest.java
b/infra/url/core/src/test/java/org/apache/shardingsphere/infra/url/core/ShardingSphereURLLoadEngineTest.java
index a13e173b3b1..ce57138193e 100644
---
a/infra/url/core/src/test/java/org/apache/shardingsphere/infra/url/core/ShardingSphereURLLoadEngineTest.java
+++
b/infra/url/core/src/test/java/org/apache/shardingsphere/infra/url/core/ShardingSphereURLLoadEngineTest.java
@@ -33,7 +33,8 @@ class ShardingSphereURLLoadEngineTest {
@Test
void assertLoadContent() {
- String content = "foo_driver_fixture_db=2\nstorage_unit_count=2\n";
+ final String lineSeparator = System.lineSeparator();
+ String content = "foo_driver_fixture_db=2" + lineSeparator +
"storage_unit_count=2" + lineSeparator;
ShardingSphereURLLoader urlLoader =
mock(ShardingSphereURLLoader.class);
when(urlLoader.load(any(), any())).thenReturn(content);
try (MockedStatic<TypedSPILoader> typedSPILoaderMockedStatic =
mockStatic(TypedSPILoader.class)) {