From 5799e6c3cae51cb7d8042b0dd125d893e8260eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=87=E9=80=B8?= Date: Mon, 26 Feb 2024 21:17:49 +0800 Subject: [PATCH] fix(runtime): message queue test --- compio-runtime/tests/custom_loop.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compio-runtime/tests/custom_loop.rs b/compio-runtime/tests/custom_loop.rs index 59514497..3f3e22c3 100644 --- a/compio-runtime/tests/custom_loop.rs +++ b/compio-runtime/tests/custom_loop.rs @@ -139,7 +139,7 @@ fn message_queue() { Some(timeout) => timeout.as_millis() as u32, None => INFINITE, }; - let handle = driver.as_raw_fd() as HANDLE; + let handle = self.runtime.as_raw_fd() as HANDLE; let res = unsafe { MsgWaitForMultipleObjectsEx( 1, @@ -150,7 +150,7 @@ fn message_queue() { ) }; if res == WAIT_FAILED { - return Err(std::io::Error::last_os_error()); + panic!("{:?}", std::io::Error::last_os_error()); } let mut msg = MaybeUninit::uninit();