(run_id: &str, owner: &str, workdir: &Path, expires_at: i64)
| 598 | use tempfile::TempDir; |
| 599 | |
| 600 | fn lifecycle(run_id: &str, owner: &str, workdir: &Path, expires_at: i64) -> ManagedLifecycle { |
| 601 | ManagedLifecycle { |
| 602 | run_id: run_id.to_string(), |
| 603 | owner_agent: owner.to_string(), |
| 604 | owner_session_id: format!("{}-session", owner), |
| 605 | executor_agent: None, |
| 606 | work_item_id: None, |
| 607 | view: Some("sherpa-run".to_string()), |
| 608 | workdir: workdir.to_path_buf(), |
| 609 | created_at: 1, |
| 610 | updated_at: 1, |
| 611 | expires_at, |
| 612 | } |
| 613 | } |
| 614 | |
| 615 | #[test] |
| 616 | fn keyed_store_holds_concurrent_runs() { |
no outgoing calls