Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: test

Louis51a902199412
diff --git a/src-tauri/plugins/tauri-plugin-hardware/src/tests.rs b/src-tauri/plugins/tauri-plugin-hardware/src/tests.rs
index f05a2f759..1d4975104 100644
--- a/src-tauri/plugins/tauri-plugin-hardware/src/tests.rs
+++ b/src-tauri/plugins/tauri-plugin-hardware/src/tests.rs
@@ -33,6 +33,7 @@ mod cpu_tests {
// Architecture should be one of the expected values
assert!(
cpu_info.arch == "aarch64" ||
+ cpu_info.arch == "arm64" ||
cpu_info.arch == "x86_64" ||
cpu_info.arch == std::env::consts::ARCH
);
@@ -110,7 +111,7 @@ mod cpu_tests {
assert!(!cpu_info.arch.is_empty());
// Should be one of the common architectures
- let common_archs = ["x86_64", "aarch64", "arm", "x86"];
+ let common_archs = ["x86_64", "aarch64", "arm", "arm64", "x86"];
let is_common_arch = common_archs.iter().any(|&arch| cpu_info.arch == arch);
let is_compile_time_arch = cpu_info.arch == std::env::consts::ARCH;