Skip to content

Commit

Permalink
fix(runtime): message queue test
Browse files Browse the repository at this point in the history
  • Loading branch information
Berrysoft committed Feb 26, 2024
1 parent bf0dff3 commit 5799e6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compio-runtime/tests/custom_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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();
Expand Down

0 comments on commit 5799e6c

Please sign in to comment.