test(java): build the expected system jar path with native separators

Цей коміт міститься в:
l0ng-ai committed 2026-12-01 21:35:49 +08:00
1 джерело d838df534b
коміт c6b8d23159
1 file changed
+1 -1
+1 -1
Переглянути файл
@@ -1292,7 +1292,7 @@ mod tests {
fn java_server_launch_classpath_includes_local_maven_system_jars() {
let tmp = tempfile::tempdir().unwrap();
let root = dunce::canonicalize(tmp.path()).unwrap();
let jar = root.join("src/main/resources/lib/offline.jar");
let jar = ["src", "main", "resources", "lib", "offline.jar"].iter().fold(root.clone(), |p, c| p.join(c));
std::fs::create_dir_all(jar.parent().unwrap()).unwrap();
std::fs::write(&jar, "").unwrap();
std::fs::write(