Skip to content

Commit

Permalink
chore(yamux): migrate tests from async-std to tokio
Browse files Browse the repository at this point in the history
Migrating tests in protocols/request-response from async_std to tokio as per #4449

Pull-Request: #5872.
  • Loading branch information
shiyasmohd authored Feb 20, 2025
1 parent ce3908f commit 9e0e8be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion muxers/yamux/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ yamux013 = { version = "0.13.3", package = "yamux" }
tracing = { workspace = true }

[dev-dependencies]
async-std = { version = "1.7.0", features = ["attributes"] }
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
libp2p-muxer-test-harness = { path = "../test-harness" }

# Passing arguments to the docsrs builder in order to properly document cfg's.
Expand Down
4 changes: 2 additions & 2 deletions muxers/yamux/tests/compliance.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
use libp2p_yamux::Config;

#[async_std::test]
#[tokio::test]
async fn close_implies_flush() {
let (alice, bob) =
libp2p_muxer_test_harness::connected_muxers_on_memory_ring_buffer::<Config, _, _>().await;

libp2p_muxer_test_harness::close_implies_flush(alice, bob).await;
}

#[async_std::test]
#[tokio::test]
async fn read_after_close() {
let (alice, bob) =
libp2p_muxer_test_harness::connected_muxers_on_memory_ring_buffer::<Config, _, _>().await;
Expand Down

0 comments on commit 9e0e8be

Please sign in to comment.