Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jorendorff committed Nov 16, 2022
1 parent e71d41e commit 4eccfcc
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tokio/src/runtime/tests/loom_blocking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,10 @@ fn spawn_blocking_when_paused() {
let _enter = handle.enter();
let a = crate::task::spawn_blocking(|| {});
let b = crate::task::spawn_blocking(|| {});
rt.block_on(crate::time::timeout(
Duration::from_millis(1),
async move {
a.await.expect("blocking task should finish");
b.await.expect("blocking task should finish");
}
))
rt.block_on(crate::time::timeout(Duration::from_millis(1), async move {
a.await.expect("blocking task should finish");
b.await.expect("blocking task should finish");
}))
.expect("timeout should not trigger");
});
}
Expand Down

0 comments on commit 4eccfcc

Please sign in to comment.