Skip to content

Commit

Permalink
Removed test_block_on_all_panics_from_spawns
Browse files Browse the repository at this point in the history
  • Loading branch information
barshaul committed Jul 30, 2024
1 parent 7c16e23 commit 173a9af
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions redis/tests/support/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,6 @@ where
res
}

#[cfg(feature = "aio")]
#[test]
fn test_block_on_all_panics_from_spawns() {
let result = std::panic::catch_unwind(|| {
block_on_all(async {
tokio::task::spawn(async {
futures_time::task::sleep(futures_time::time::Duration::from_millis(1)).await;
panic!("As it should");
});
futures_time::task::sleep(futures_time::time::Duration::from_millis(10)).await;
Ok(())
})
});
assert!(result.is_err());
}

#[cfg(feature = "async-std-comp")]
pub fn block_on_all_using_async_std<F>(f: F) -> F::Output
where
Expand Down

0 comments on commit 173a9af

Please sign in to comment.