From b99f234c055d0d7c5a2e7e74554ce9018ee0dd45 Mon Sep 17 00:00:00 2001 From: Yiannis Marangos Date: Thu, 9 Nov 2023 12:19:15 +0200 Subject: [PATCH] fix: ensure `SwarmBuilder` multiplexer tests compile Fixes #4830. Pull-Request: #4831. --- libp2p/src/builder.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/libp2p/src/builder.rs b/libp2p/src/builder.rs index 60b977f4397..f1594df78fa 100644 --- a/libp2p/src/builder.rs +++ b/libp2p/src/builder.rs @@ -113,7 +113,7 @@ 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() @@ -121,8 +121,8 @@ mod tests { 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()