Skip to content

Commit

Permalink
rebase master
Browse files Browse the repository at this point in the history
  • Loading branch information
alce committed Sep 25, 2020
1 parent e652d74 commit eae5a39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tokio/tests/rt_common.rs
Expand Up @@ -588,17 +588,17 @@ rt_test! {
let jh1 = thread::spawn(move || {
rt.block_on(async move {
rx2.await.unwrap();
time::delay_for(Duration::from_millis(5)).await;
time::sleep(Duration::from_millis(5)).await;
tx1.send(()).unwrap();
});
});

let jh2 = thread::spawn(move || {
rt2.block_on(async move {
tx2.send(()).unwrap();
time::delay_for(Duration::from_millis(5)).await;
time::sleep(Duration::from_millis(5)).await;
rx1.await.unwrap();
time::delay_for(Duration::from_millis(5)).await;
time::sleep(Duration::from_millis(5)).await;
});
});

Expand Down

0 comments on commit eae5a39

Please sign in to comment.