mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-17 04:45:33 -08:00
Import process_alive only in the Windows-only test that uses it, so clippy passes on macOS and Linux
AI Assisted
This commit is contained in:
1 parent
78153576a9
commit
dd2ab86584
1 file changed
+2
-1
@@ -7,7 +7,7 @@ use std::time::{Duration, Instant};
|
|||||||
use plan2code_app_lib::pty_host::{PtyHost, StartOptions};
|
use plan2code_app_lib::pty_host::{PtyHost, StartOptions};
|
||||||
|
|
||||||
mod common;
|
mod common;
|
||||||
use common::{fake_agent, process_alive};
|
use common::fake_agent;
|
||||||
|
|
||||||
fn start_fake() -> (PtyHost, Receiver<Vec<u8>>) {
|
fn start_fake() -> (PtyHost, Receiver<Vec<u8>>) {
|
||||||
let (tx, rx) = channel();
|
let (tx, rx) = channel();
|
||||||
@@ -109,6 +109,7 @@ fn kill_ends_a_running_step() {
|
|||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
#[test]
|
#[test]
|
||||||
fn kill_ends_a_cmd_wrapped_grandchild_too() {
|
fn kill_ends_a_cmd_wrapped_grandchild_too() {
|
||||||
|
use common::process_alive;
|
||||||
use plan2code_app_lib::agents::windows_command;
|
use plan2code_app_lib::agents::windows_command;
|
||||||
use std::fs;
|
use std::fs;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user