Skip to content

Commit 9e0e8be

Browse files
authored
chore(yamux): migrate tests from async-std to tokio
Migrating tests in protocols/request-response from async_std to tokio as per #4449 Pull-Request: #5872.
1 parent ce3908f commit 9e0e8be

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

muxers/yamux/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ yamux013 = { version = "0.13.3", package = "yamux" }
2020
tracing = { workspace = true }
2121

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

2626
# Passing arguments to the docsrs builder in order to properly document cfg's.

muxers/yamux/tests/compliance.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
use libp2p_yamux::Config;
22

3-
#[async_std::test]
3+
#[tokio::test]
44
async fn close_implies_flush() {
55
let (alice, bob) =
66
libp2p_muxer_test_harness::connected_muxers_on_memory_ring_buffer::<Config, _, _>().await;
77

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

11-
#[async_std::test]
11+
#[tokio::test]
1212
async fn read_after_close() {
1313
let (alice, bob) =
1414
libp2p_muxer_test_harness::connected_muxers_on_memory_ring_buffer::<Config, _, _>().await;

0 commit comments

Comments
 (0)