Skip to content

Commit

Permalink
fix: ensure SwarmBuilder multiplexer tests compile
Browse files Browse the repository at this point in the history
Fixes libp2p#4830.

Pull-Request: libp2p#4831.
  • Loading branch information
oblique authored Nov 9, 2023
1 parent 22f70e1 commit b99f234
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions libp2p/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,16 @@ mod tests {
}

#[test]
#[cfg(all(feature = "tokio", feature = "tcp", feature = "tls", feature = "mplex"))]
#[cfg(all(feature = "tokio", feature = "tcp", feature = "tls", feature = "yamux"))]
fn tcp_yamux_mplex() {
let _ = SwarmBuilder::with_new_identity()
.with_tokio()
.with_tcp(
Default::default(),
libp2p_tls::Config::new,
(
libp2p_yamux::Config::default(),
libp2p_mplex::MplexConfig::default(),
libp2p_yamux::Config::default,
libp2p_mplex::MplexConfig::default,
),
)
.unwrap()
Expand All @@ -132,7 +132,13 @@ mod tests {
}

#[test]
#[cfg(all(feature = "tokio", feature = "tcp", feature = "tls", feature = "noise"))]
#[cfg(all(
feature = "tokio",
feature = "tcp",
feature = "tls",
feature = "noise",
feature = "yamux"
))]
fn tcp_tls_noise() {
let _ = SwarmBuilder::with_new_identity()
.with_tokio()
Expand Down

0 comments on commit b99f234

Please sign in to comment.