(run_id: &str, owner: &str, workdir: &Path, expires_at: i64)
| 1175 | use tempfile::TempDir; |
| 1176 | |
| 1177 | fn lifecycle(run_id: &str, owner: &str, workdir: &Path, expires_at: i64) -> ManagedLifecycle { |
| 1178 | ManagedLifecycle { |
| 1179 | run_id: run_id.to_string(), |
| 1180 | owner_agent: owner.to_string(), |
| 1181 | owner_session_id: format!("{}-session", owner), |
| 1182 | executor_agent: None, |
| 1183 | work_item_id: None, |
| 1184 | view: Some("sherpa-run".to_string()), |
| 1185 | refusal: None, |
| 1186 | workdir: workdir.to_path_buf(), |
| 1187 | created_at: 1, |
| 1188 | updated_at: 1, |
| 1189 | expires_at, |
| 1190 | stop_state: None, |
| 1191 | } |
| 1192 | } |
| 1193 | |
| 1194 | #[test] |
| 1195 | fn keyed_store_holds_concurrent_runs() { |
no outgoing calls