fix(ci): gate Windows-only tests with #[cfg(all(test, target_os = windows))]

This commit is contained in:
晴天
2026-03-11 03:23:08 +08:00
parent 073946740a
commit 5919036d3b

View File

@@ -1086,7 +1086,7 @@ pub async fn restart_service(label: String) -> Result<(), String> {
result
}
#[cfg(test)]
#[cfg(all(test, target_os = "windows"))]
mod tests {
use super::{looks_like_gateway_command_line, parse_listening_pids_from_netstat};