mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-26 20:34:23 +00:00
Fixed an unused import in the tests of the stale process cleanup on Windows
This commit is contained in:
1 file changed
+2
-2
@@ -99,12 +99,12 @@ pub fn log_potential_stale_process(pid_file_path: PathBuf, pid: u32, sidecar_typ
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
// The test starts `sleep`, which Windows lacks:
|
||||||
|
#[cfg(all(test, unix))]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
/// Verifies that a process found by its number alone gets a PID file and is killed later on.
|
/// Verifies that a process found by its number alone gets a PID file and is killed later on.
|
||||||
#[cfg(unix)]
|
|
||||||
#[test]
|
#[test]
|
||||||
fn stale_process_is_recorded_and_killed() {
|
fn stale_process_is_recorded_and_killed() {
|
||||||
use std::os::unix::process::ExitStatusExt;
|
use std::os::unix::process::ExitStatusExt;
|
||||||
|
|||||||
Reference in new issue
Block a user