diff --git a/pinger/src/linux.rs b/pinger/src/linux.rs index 63f72797..39c88389 100644 --- a/pinger/src/linux.rs +++ b/pinger/src/linux.rs @@ -90,8 +90,8 @@ mod tests { #[cfg(target_os = "linux")] fn test_linux_detection() { use super::*; - use std::time::Duration; use os_info::Type; + use std::time::Duration; let platform = LinuxPinger::detect_platform_ping(PingOptions::new( "foo.com".to_string(), diff --git a/pinger/src/test.rs b/pinger/src/test.rs index 52c8336c..f9264aa0 100644 --- a/pinger/src/test.rs +++ b/pinger/src/test.rs @@ -4,7 +4,7 @@ mod tests { use crate::linux::LinuxPinger; use crate::macos::MacOSPinger; #[cfg(windows)] - use crate::windows::WindowsParser; + use crate::windows::WindowsPinger; use crate::{PingOptions, PingResult, Pinger}; use std::time::Duration; @@ -89,7 +89,7 @@ mod tests { #[cfg(windows)] #[test] fn windows() { - test_parser::(include_str!("tests/windows.txt")); + test_parser::(include_str!("tests/windows.txt")); } #[test]