From 481e443ef60589dfd6c48ee3d3b43c10367b38c9 Mon Sep 17 00:00:00 2001 From: Shiyas Mohammed <83513144+shiyasmohd@users.noreply.github.com> Date: Sun, 2 Feb 2025 13:10:09 +0530 Subject: [PATCH] fix(tests): update required features in Cargo.toml --- transports/quic/Cargo.toml | 2 +- transports/quic/tests/stream_compliance.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/transports/quic/Cargo.toml b/transports/quic/Cargo.toml index 8c416858c91..7f54029f6fd 100644 --- a/transports/quic/Cargo.toml +++ b/transports/quic/Cargo.toml @@ -47,7 +47,7 @@ tracing-subscriber = { workspace = true, features = ["env-filter"] } [[test]] name = "stream_compliance" -required-features = ["async-std"] +required-features = ["tokio"] [lints] workspace = true diff --git a/transports/quic/tests/stream_compliance.rs b/transports/quic/tests/stream_compliance.rs index 47326aa7ebb..225ea1e4936 100644 --- a/transports/quic/tests/stream_compliance.rs +++ b/transports/quic/tests/stream_compliance.rs @@ -7,7 +7,6 @@ use libp2p_core::{ }; use libp2p_quic as quic; -#[cfg(feature = "tokio")] #[tokio::test] async fn close_implies_flush() { let (alice, bob) = connected_peers().await; @@ -15,7 +14,6 @@ async fn close_implies_flush() { libp2p_muxer_test_harness::close_implies_flush(alice, bob).await; } -#[cfg(feature = "tokio")] #[tokio::test] async fn read_after_close() { let (alice, bob) = connected_peers().await;