дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 01:57:13 +02:00
test(run): use the native path in the JVM JSON thread-dump assertion (#5837)
The JSON thread-dump test built its expected path with a forward slash, so it failed on Windows where the path uses backslashes. Join the file name onto the directory instead. Co-authored-by: principalwater <[email protected]>
Цей коміт міститься в:
1 джерело
a393bcdcc2
коміт
834846840b
1 file changed
+1
-1
@@ -320,7 +320,7 @@ mod tests {
|
||||
})
|
||||
.unwrap();
|
||||
assert_eq!(json, "{\"threadDump\":{}}");
|
||||
let prefix = format!("Thread.dump_to_file -format=json \"{}/threads-42-", dir.display());
|
||||
let prefix = format!("Thread.dump_to_file -format=json \"{}", dir.join("threads-42-").display());
|
||||
assert!(sent.starts_with(&prefix) && sent.ends_with(".json\""), "{sent}");
|
||||
assert!(is_empty(&dir));
|
||||
}
|
||||
|
||||
Reference in new issue
Заблокувати користувача