Skip to content

Commit

Permalink
core/tests: Remove unnecessary util module (#2764)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger committed Jul 25, 2022
1 parent 95713ab commit f85a990
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 59 deletions.
12 changes: 0 additions & 12 deletions core/tests/transport_upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.

mod util;

use futures::prelude::*;
use libp2p_core::identity;
use libp2p_core::transport::{MemoryTransport, Transport};
Expand Down Expand Up @@ -91,11 +89,6 @@ fn upgrade_pipeline() {
.apply(HelloUpgrade {})
.apply(HelloUpgrade {})
.multiplex(MplexConfig::default())
.and_then(|(peer, mplex), _| {
// Gracefully close the connection to allow protocol
// negotiation to complete.
util::CloseMuxer::new(mplex).map_ok(move |mplex| (peer, mplex))
})
.boxed();

let dialer_keys = identity::Keypair::generate_ed25519();
Expand All @@ -110,11 +103,6 @@ fn upgrade_pipeline() {
.apply(HelloUpgrade {})
.apply(HelloUpgrade {})
.multiplex(MplexConfig::default())
.and_then(|(peer, mplex), _| {
// Gracefully close the connection to allow protocol
// negotiation to complete.
util::CloseMuxer::new(mplex).map_ok(move |mplex| (peer, mplex))
})
.boxed();

let listen_addr1 = Multiaddr::from(Protocol::Memory(random::<u64>()));
Expand Down
47 changes: 0 additions & 47 deletions core/tests/util.rs

This file was deleted.

0 comments on commit f85a990

Please sign in to comment.