From 7635df5df55cd7ead7eea1d88f15662fe6dd9e22 Mon Sep 17 00:00:00 2001 From: aeoform <2790848120@qq.com> Date: Fri, 22 May 2026 20:48:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(test):=20=E5=90=8C=E6=AD=A5=20capsule=5Fsho?= =?UTF-8?q?w=5Fstrategy=20=E5=8D=95=E6=B5=8B=E7=9A=84=20Linux=20cfg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Linux 已从 NoActivate 列表移除(走 fcitx5 auxDown 状态提示),测试断言 需同步更新为 FallbackShow。 Co-Authored-By: Claude Opus 4.7 (1M context) --- openless-all/app/src-tauri/src/coordinator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openless-all/app/src-tauri/src/coordinator.rs b/openless-all/app/src-tauri/src/coordinator.rs index cd07c603..595f5532 100644 --- a/openless-all/app/src-tauri/src/coordinator.rs +++ b/openless-all/app/src-tauri/src/coordinator.rs @@ -3866,13 +3866,13 @@ mod tests { // 平台列表必须与 capsule_show_strategy_for_platform 的 cfg 完全一致: // 改实现里的 #[cfg] 时,一并改这两个 #[cfg],否则 Linux CI 直接红 // (fcitx5 PR #451 把 Linux 加进 NoActivate 但漏改本测试,CI 失败)。 - #[cfg(any(target_os = "macos", target_os = "windows", target_os = "linux"))] + #[cfg(any(target_os = "macos", target_os = "windows"))] assert_eq!( capsule_show_strategy_for_platform(), CapsuleShowStrategy::NoActivate ); - #[cfg(not(any(target_os = "macos", target_os = "windows", target_os = "linux")))] + #[cfg(not(any(target_os = "macos", target_os = "windows")))] assert_eq!( capsule_show_strategy_for_platform(), CapsuleShowStrategy::FallbackShow