From 6899e31812ff5a5d1f7eaff6a165ee6a47206b76 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Mon, 15 Nov 2021 18:30:58 +0000 Subject: [PATCH] fix test when uring is enabled --- actix-rt/tests/tests.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/actix-rt/tests/tests.rs b/actix-rt/tests/tests.rs index 7dc67dfa..551a395d 100644 --- a/actix-rt/tests/tests.rs +++ b/actix-rt/tests/tests.rs @@ -24,6 +24,7 @@ fn await_for_timer() { ); } +#[cfg(not(feature = "io-uring"))] #[test] fn run_with_code() { let sys = System::new(); @@ -107,8 +108,8 @@ fn wait_for_spawns() { let handle = rt.spawn(async { println!("running on the runtime"); - // assertion panic is caught at task boundary - assert_eq!(1, 2); + // panic is caught at task boundary + panic!("intentional test panic"); }); assert!(rt.block_on(handle).is_err());