diff --git a/crates/openshell-driver-mxc/src/driver.rs b/crates/openshell-driver-mxc/src/driver.rs index cdbfee55c..b1bc68f85 100644 --- a/crates/openshell-driver-mxc/src/driver.rs +++ b/crates/openshell-driver-mxc/src/driver.rs @@ -662,6 +662,7 @@ fn make_sandbox_with_condition( #[cfg(test)] mod lifecycle_tests { use super::*; + use futures::StreamExt; use openshell_core::proto::compute::v1::DriverSandboxSpec; use openshell_core::proto::{FilesystemPolicy, SandboxPolicy}; use std::time::Duration; diff --git a/crates/openshell-driver-mxc/src/policy.rs b/crates/openshell-driver-mxc/src/policy.rs index 40268ab22..da1ea94f4 100644 --- a/crates/openshell-driver-mxc/src/policy.rs +++ b/crates/openshell-driver-mxc/src/policy.rs @@ -325,7 +325,8 @@ mod tests { #[test] fn embedded_rejects_network_policy_on_isolation_session() { - use openshell_core::proto::{NetworkBinary, NetworkEndpoint, NetworkPolicyRule}; + use openshell_core::proto::{NetworkEndpoint, NetworkPolicyRule}; + let mapper = EmbeddedPolicyMapper; let mut policy = fs_policy(&["C:/work/demo"], &[]); policy.network_policies.insert( "api".to_string(), @@ -335,10 +336,7 @@ mod tests { host: "example.com".into(), ..Default::default() }], - binaries: vec![NetworkBinary { - path: "/usr/bin/curl".into(), - harness: false, - }], + binaries: Vec::new(), }, ); let ctx = demo_ctx(Some("C:/work/demo"));