Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: SwarmBuilder multiplexer tests
Browse files Browse the repository at this point in the history
oblique committed Nov 9, 2023
1 parent dbfda10 commit 39312d6
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
@@ -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()
@@ -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()

0 comments on commit 39312d6

Please sign in to comment.