fix: 修复实时日志与数据库切换可靠性
Axolotl desktop CI / guardrails (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled
Sync LobeHub models / sync (push) Has been cancelled
Axolotl desktop CI / guardrails (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled
Sync LobeHub models / sync (push) Has been cancelled
This commit is contained in:
1 parent
2efaa4fb35
commit
ce0f41c973
30 files changed
+814
-461
No files matched your search
@@ -1940,13 +1940,16 @@ mod tests {
|
||||
assert_eq!(
|
||||
direct.version_json,
|
||||
Some(
|
||||
version_dir
|
||||
.join("1.20.1-fabric.json")
|
||||
.canonicalize()
|
||||
.unwrap()
|
||||
crate::util::io::canonicalize(
|
||||
version_dir.join("1.20.1-fabric.json"),
|
||||
)
|
||||
.unwrap(),
|
||||
)
|
||||
);
|
||||
assert_eq!(direct.dot_minecraft, root.path().canonicalize().unwrap());
|
||||
assert_eq!(
|
||||
direct.dot_minecraft,
|
||||
crate::util::io::canonicalize(root.path()).unwrap()
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -2002,6 +2005,15 @@ mod tests {
|
||||
let root = tempfile::tempdir().unwrap();
|
||||
let version = root.path().join("versions/demo");
|
||||
std::fs::create_dir_all(&version).unwrap();
|
||||
std::fs::write(
|
||||
version.join("demo.json"),
|
||||
serde_json::to_vec(&json!({
|
||||
"id": "demo",
|
||||
"mainClass": "net.minecraft.client.main.Main"
|
||||
}))
|
||||
.unwrap(),
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
assert_eq!(
|
||||
resolve_content_game_dir(root.path(), &version).unwrap(),
|
||||
@@ -2469,7 +2481,13 @@ mod tests {
|
||||
);
|
||||
assert_eq!(
|
||||
candidates,
|
||||
vec![launcher.path().join("runtime/jdk17/bin/java")]
|
||||
vec![
|
||||
launcher
|
||||
.path()
|
||||
.join("runtime/jdk17")
|
||||
.join("bin")
|
||||
.join(PCL_JAVA_BIN)
|
||||
]
|
||||
);
|
||||
|
||||
// A relative path escaping the launcher directory degrades to the
|
||||
|
||||
Reference in new issue
Block a user