From e7302691443ffc2e51167f0ddec165f181c89d8b Mon Sep 17 00:00:00 2001 From: Daniel Abramov Date: Mon, 28 Nov 2022 23:36:58 +0100 Subject: [PATCH] Feature-gate handshakes / communication test --- tests/communication.rs | 2 ++ tests/handshakes.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/communication.rs b/tests/communication.rs index d72566a..a326f86 100644 --- a/tests/communication.rs +++ b/tests/communication.rs @@ -1,3 +1,5 @@ +#![cfg(feature = "handshake")] + use async_std::net::{TcpListener, TcpStream}; use async_std::task; use async_tungstenite::{accept_async, client_async, WebSocketStream}; diff --git a/tests/handshakes.rs b/tests/handshakes.rs index 3cd607c..ad9cd9a 100644 --- a/tests/handshakes.rs +++ b/tests/handshakes.rs @@ -1,3 +1,5 @@ +#![cfg(feature = "handshake")] + use async_std::net::{TcpListener, TcpStream}; use async_std::task; use async_tungstenite::{accept_async, client_async};