From 060c40b2333b35e0d9e00f6e375dda4c0d54c2bb Mon Sep 17 00:00:00 2001 From: Dmitry Markin Date: Fri, 23 Aug 2024 15:35:56 +0300 Subject: [PATCH] minor: fix tests without `websocket` feature (#215) Put test requiring WebSocket transport behind a feature guard. --- src/transport/manager/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/transport/manager/mod.rs b/src/transport/manager/mod.rs index a47d309e..066327bf 100644 --- a/src/transport/manager/mod.rs +++ b/src/transport/manager/mod.rs @@ -1776,8 +1776,9 @@ mod tests { executor::DefaultExecutor, transport::{dummy::DummyTransport, KEEP_ALIVE_TIMEOUT}, }; + #[cfg(feature = "websocket")] + use std::borrow::Cow; use std::{ - borrow::Cow, net::{Ipv4Addr, Ipv6Addr}, sync::Arc, }; @@ -4082,6 +4083,7 @@ mod tests { } } + #[cfg(feature = "websocket")] #[tokio::test] async fn opening_errors_are_reported() { let _ = tracing_subscriber::fmt()