ci: cross-compile Windows Bazel tests

This commit is contained in:
Michael Bolin
2026-05-01 09:16:24 -07:00
parent 5744b85b9a
commit 167a3c19e1
13 changed files with 282 additions and 78 deletions
+2 -6
View File
@@ -34,6 +34,7 @@ where
mod tests {
use super::*;
use pretty_assertions::assert_eq;
use std::future::pending;
use std::time::Duration;
use tokio::task;
use tokio::time::sleep;
@@ -58,12 +59,7 @@ mod tests {
token_clone.cancel();
});
let result = async {
sleep(Duration::from_millis(100)).await;
7
}
.or_cancel(&token)
.await;
let result = pending::<i32>().or_cancel(&token).await;
cancel_handle.await.expect("cancel task panicked");
assert_eq!(Err(CancelErr::Cancelled), result);