From 731fcd0a427d885355ae7bee8b3a456fe8757c0a Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Fri, 20 Nov 2026 22:30:08 +0800 Subject: [PATCH] Remove redundant Native Shell launcher test The Linux upgrade test exercises the real launcher with an outdated Native Shell and a compatible Tauri binary. Keep that coverage and remove the unit fixture that rewrites its executable between version probes. --- crates/gpapi/src/process/gui_launcher.rs | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/crates/gpapi/src/process/gui_launcher.rs b/crates/gpapi/src/process/gui_launcher.rs index b964bab..8fca546 100644 --- a/crates/gpapi/src/process/gui_launcher.rs +++ b/crates/gpapi/src/process/gui_launcher.rs @@ -523,30 +523,6 @@ mod tests { ); } - #[tokio::test] - async fn nsh_version_mismatch_cannot_select_a_compatible_tauri_binary() { - let dir = TempDir::new().unwrap(); - let _tauri = executable(&dir, "gpgui", "gpgui test-version", 0); - let nsh = executable(&dir, "gpgui-nsh", "gpgui-nsh old-version", 0); - let mut selected = launcher(VERSION, vec![nsh.clone()]); - selected.variant = crate::gui::GuiVariant::Nsh; - assert!( - selected - .find_compatible_program(&CancellationToken::new()) - .await - .unwrap() - .is_none() - ); - executable(&dir, "gpgui-nsh", "gpgui-nsh test-version", 0); - assert_eq!( - selected - .find_compatible_program(&CancellationToken::new()) - .await - .unwrap(), - Some(nsh) - ); - } - #[test] #[cfg(target_os = "linux")] fn supervisor_switch_success_and_failure_preserve_child_ownership() {