Skip to content

Commit

Permalink
fix: unit test scanner_scan_proc longer timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Orycterope committed May 25, 2021
1 parent c30065b commit 2f1f5ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,15 +284,15 @@ mod test {
#[cfg(windows)]
let process_match = Command::new("cmd")
.arg("/C")
.arg(format!("ping 127.0.0.1 -n 6 > nul & echo {}", UUID_MATCH))
.arg(format!("ping 127.0.0.1 -n 60 > nul & echo {}", UUID_MATCH))
.stdout(Stdio::null())
.spawn()
.unwrap();
#[cfg(windows)]
let process_no_match = Command::new("cmd")
.arg("/C")
.arg(format!(
"ping 127.0.0.1 -n 6 > nul & echo {}",
"ping 127.0.0.1 -n 60 > nul & echo {}",
UUID_NO_MATCH
))
.stdout(Stdio::null())
Expand Down

0 comments on commit 2f1f5ec

Please sign in to comment.