(store: Arc<Store>)
| 2094 | |
| 2095 | #[cfg(test)] |
| 2096 | pub async fn new_test_runtime(store: Arc<Store>) -> ComputeRuntime { |
| 2097 | ComputeRuntime { |
| 2098 | driver: Arc::new(NoopTestDriver), |
| 2099 | driver_name: "test".to_string(), |
| 2100 | shutdown_cleanup: None, |
| 2101 | startup_resume: None, |
| 2102 | _driver_process: None, |
| 2103 | default_image: "openshell/sandbox:test".to_string(), |
| 2104 | store, |
| 2105 | sandbox_index: SandboxIndex::new(), |
| 2106 | sandbox_watch_bus: SandboxWatchBus::new(), |
| 2107 | tracing_log_bus: TracingLogBus::new(), |
| 2108 | supervisor_sessions: Arc::new(SupervisorSessionRegistry::new()), |
| 2109 | sync_lock: Arc::new(Mutex::new(())), |
| 2110 | gateway_bind_addresses: Vec::new(), |
| 2111 | replica_id: "test-replica".to_string(), |
| 2112 | } |
| 2113 | } |
| 2114 | |
| 2115 | #[cfg(test)] |
| 2116 | mod tests { |
no outgoing calls