From 20c66f89adcbb8c2c101a1236a29e20d2c473fe9 Mon Sep 17 00:00:00 2001 From: wireless4024 Date: Sun, 12 Feb 2023 11:16:23 +0700 Subject: [PATCH] fix failed test case --- actix-rt/tests/tests.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/actix-rt/tests/tests.rs b/actix-rt/tests/tests.rs index 20a77c58..a1f7e473 100644 --- a/actix-rt/tests/tests.rs +++ b/actix-rt/tests/tests.rs @@ -93,6 +93,10 @@ fn non_static_block_on() { assert_eq!("test_str", string); }); + // this drop is required for tokio_uring because it initialize io_uring driver twice! + #[cfg(feature = "io-uring")] + drop(sys); + let rt = actix_rt::Runtime::new().unwrap(); rt.block_on(async {