From 331679964b04fcb98a9c7b846769fae1037edb9f Mon Sep 17 00:00:00 2001 From: Sebastian Holmin Date: Wed, 8 Jan 2025 14:23:06 +0100 Subject: [PATCH] !fixup --- test/test-manager/src/main.rs | 2 ++ test/test-manager/src/vm/network/macos.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test-manager/src/main.rs b/test/test-manager/src/main.rs index af96337d167d..95274e9a7a8e 100644 --- a/test/test-manager/src/main.rs +++ b/test/test-manager/src/main.rs @@ -9,6 +9,8 @@ mod summary; mod tests; mod vm; +#[cfg(target_os = "macos")] +use std::net::IpAddr; use std::{net::SocketAddr, path::PathBuf}; use anyhow::{Context, Result}; diff --git a/test/test-manager/src/vm/network/macos.rs b/test/test-manager/src/vm/network/macos.rs index bae3b5bff776..5eeb6f611c3c 100644 --- a/test/test-manager/src/vm/network/macos.rs +++ b/test/test-manager/src/vm/network/macos.rs @@ -1,7 +1,7 @@ -use std::net::{Ipv4Addr, SocketAddrV4}; - use anyhow::{anyhow, Context, Result}; use futures::future::{self, Either}; +use nix::sys::socket::SockaddrStorage; +use std::net::{Ipv4Addr, SocketAddrV4}; use tokio::{io::AsyncWriteExt, process::Command}; // Private key of the wireguard remote peer on host.