mirror of https://github.com/fafhrd91/actix-net
fix test when uring is enabled
This commit is contained in:
parent
359d59ab39
commit
6899e31812
|
@ -24,6 +24,7 @@ fn await_for_timer() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(feature = "io-uring"))]
|
||||||
#[test]
|
#[test]
|
||||||
fn run_with_code() {
|
fn run_with_code() {
|
||||||
let sys = System::new();
|
let sys = System::new();
|
||||||
|
@ -107,8 +108,8 @@ fn wait_for_spawns() {
|
||||||
|
|
||||||
let handle = rt.spawn(async {
|
let handle = rt.spawn(async {
|
||||||
println!("running on the runtime");
|
println!("running on the runtime");
|
||||||
// assertion panic is caught at task boundary
|
// panic is caught at task boundary
|
||||||
assert_eq!(1, 2);
|
panic!("intentional test panic");
|
||||||
});
|
});
|
||||||
|
|
||||||
assert!(rt.block_on(handle).is_err());
|
assert!(rt.block_on(handle).is_err());
|
||||||
|
|
Loading…
Reference in New Issue