From bccbb7e0871966c1ae168f8758f129f472d94320 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 7 Nov 2021 13:08:17 +0100 Subject: [PATCH] Fix test imports being os-specific without conditional compilation Signed-off-by: trivernis --- src/tests/ipc_tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/ipc_tests.rs b/src/tests/ipc_tests.rs index 3760f644..4541cf97 100644 --- a/src/tests/ipc_tests.rs +++ b/src/tests/ipc_tests.rs @@ -7,7 +7,7 @@ use std::path::PathBuf; use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::Arc; use std::time::{Duration, SystemTime}; -use tokio::net::{TcpListener, UnixListener}; +use tokio::net::TcpListener; use typemap_rev::TypeMapKey; async fn handle_ping_event(ctx: &Context

, e: Event) -> IPCResult<()> { @@ -41,7 +41,7 @@ async fn it_receives_unix_socket_events() { if socket_path.exists() { std::fs::remove_file(&socket_path).unwrap(); } - it_receives_events::(socket_path).await; + it_receives_events::(socket_path).await; } async fn it_receives_events(address: L::AddressType) {