Skip to content

Commit

Permalink
Refine the feature flags (#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanYuYuan authored Apr 19, 2024
1 parent 4f42ce7 commit 92df88b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions io/zenoh-transport/tests/multicast_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Restricting to macos by default because of no IPv6 support
// on GitHub CI actions on Linux and Windows.
#[cfg(target_family = "unix")]
#[cfg(all(feature = "transport_compression", feature = "transport_udp"))]
mod tests {
use std::{
any::Any,
Expand Down
1 change: 1 addition & 0 deletions io/zenoh-transport/tests/unicast_openclose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ use zenoh_transport::{
};

#[cfg(target_os = "linux")]
#[cfg(any(feature = "transport_tcp", feature = "transport_udp"))]
use zenoh_util::net::get_ipv4_ipaddrs;

const TIMEOUT: Duration = Duration::from_secs(60);
Expand Down
5 changes: 5 additions & 0 deletions io/zenoh-transport/tests/unicast_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ const SLEEP_COUNT: Duration = Duration::from_millis(10);
const MSG_COUNT: usize = 1_000;
const MSG_SIZE_ALL: [usize; 2] = [1_024, 131_072];
const MSG_SIZE_LOWLATENCY: [usize; 2] = [1_024, 65000];
#[cfg(any(
feature = "transport_tcp",
feature = "transport_udp",
feature = "transport_unixsock-stream",
))]
const MSG_SIZE_NOFRAG: [usize; 1] = [1_024];

// Transport Handler for the router
Expand Down

0 comments on commit 92df88b

Please sign in to comment.