summaryrefslogtreecommitdiffstats
path: root/tokio/tests/macros_join.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/tests/macros_join.rs')
-rw-r--r--tokio/tests/macros_join.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tokio/tests/macros_join.rs b/tokio/tests/macros_join.rs
index ab168e81..d9b748d9 100644
--- a/tokio/tests/macros_join.rs
+++ b/tokio/tests/macros_join.rs
@@ -30,9 +30,9 @@ async fn sync_two_lit_expr_no_comma() {
}
#[tokio::test]
-async fn sync_two_await() {
- let (tx1, rx1) = oneshot::channel();
- let (tx2, rx2) = oneshot::channel();
+async fn two_await() {
+ let (tx1, rx1) = oneshot::channel::<&str>();
+ let (tx2, rx2) = oneshot::channel::<u32>();
let mut join = task::spawn(async {
tokio::join!(async { rx1.await.unwrap() }, async { rx2.await.unwrap() })