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
@@ -1107,12 +1107,17 @@ mod tests {
|
||||
"org.lwjgl.lwjgl:lwjgl-platform:2.9.4-nightly-20150209:{classifier}"
|
||||
)
|
||||
);
|
||||
assert!(
|
||||
plan.destination
|
||||
.to_string_lossy()
|
||||
.ends_with(format!("{classifier}.jar").as_str())
|
||||
);
|
||||
assert_eq!(plan.sha1.as_deref(), Some("aaa"));
|
||||
let (declared_path, declared_sha1) = match classifier.as_str() {
|
||||
"natives-linux" => (
|
||||
"org/lwjgl/lwjgl/lwjgl-platform/2.9.4-nightly-20150209/lwjgl-platform-2.9.4-nightly-20150209-natives-linux.jar",
|
||||
"aaa",
|
||||
),
|
||||
"natives-osx" => ("x-osx.jar", "bbb"),
|
||||
"natives-windows" => ("x-win.jar", "ccc"),
|
||||
other => panic!("unexpected native classifier {other}"),
|
||||
};
|
||||
assert!(plan.destination.to_string_lossy().ends_with(declared_path));
|
||||
assert_eq!(plan.sha1.as_deref(), Some(declared_sha1));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in new issue
Block a user