diff --git a/crates/shadowsocks/tests/tcp.rs b/crates/shadowsocks/tests/tcp.rs index f624c5755712..9ea4d3ed2b55 100644 --- a/crates/shadowsocks/tests/tcp.rs +++ b/crates/shadowsocks/tests/tcp.rs @@ -151,6 +151,7 @@ async fn tcp_tunnel_example( Ok(()) } +#[cfg(feature = "aead-cipher")] #[tokio::test] async fn tcp_tunnel_aead() { let _ = env_logger::try_init(); diff --git a/crates/shadowsocks/tests/udp.rs b/crates/shadowsocks/tests/udp.rs index 69e0a4e3f7cf..13afcf8be75e 100644 --- a/crates/shadowsocks/tests/udp.rs +++ b/crates/shadowsocks/tests/udp.rs @@ -136,6 +136,7 @@ async fn udp_tunnel_echo( Ok(()) } +#[cfg(feature = "aead-cipher")] #[tokio::test] async fn udp_tunnel_aead() { let _ = env_logger::try_init();