This is an automated email from the ASF dual-hosted git repository.

jianglongtao 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 366ea089169 Fix AgentPathTest failed on Windows (#38021)
366ea089169 is described below

commit 366ea08916902e55ae52556097bf6cc82a7f1bc9
Author: Raigor <[email protected]>
AuthorDate: Thu Feb 12 18:20:24 2026 +0800

    Fix AgentPathTest failed on Windows (#38021)
    
    * Fix AgentPathTest failed on Windows
    
    * Fix checkstyle
---
 .../org/apache/shardingsphere/agent/core/path/AgentPathTest.java     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/agent/core/src/test/java/org/apache/shardingsphere/agent/core/path/AgentPathTest.java
 
b/agent/core/src/test/java/org/apache/shardingsphere/agent/core/path/AgentPathTest.java
index e60fd78f31b..d1d1bcca258 100644
--- 
a/agent/core/src/test/java/org/apache/shardingsphere/agent/core/path/AgentPathTest.java
+++ 
b/agent/core/src/test/java/org/apache/shardingsphere/agent/core/path/AgentPathTest.java
@@ -54,8 +54,9 @@ class AgentPathTest {
     @Test
     void assertGetRootPath() throws IOException {
         Path jarPath = createAgentJar(tempDir.resolve("agent-path.jar"));
-        URLClassLoader customClassLoader = new URLClassLoader(new 
URL[]{jarPath.toUri().toURL()}, null);
-        try (SystemClassLoaderContext ignored = new 
SystemClassLoaderContext(customClassLoader)) {
+        try (
+                URLClassLoader customClassLoader = new URLClassLoader(new 
URL[]{jarPath.toUri().toURL()}, null);
+                SystemClassLoaderContext ignored = new 
SystemClassLoaderContext(customClassLoader)) {
             assertThat(AgentPath.getRootPath(), 
is(jarPath.getParent().toFile()));
         }
     }

Reply via email to