()
| 263 | |
| 264 | #[tokio::test] |
| 265 | async fn respects_concurrency_hint() { |
| 266 | let mock = MockExecutor::new(2); |
| 267 | let max_active = Arc::clone(&mock.max_active); |
| 268 | let exec: Arc<dyn AgentExecutor> = Arc::new(mock); |
| 269 | let specs = (0..6).map(|i| spec(&i.to_string(), "explore")).collect(); |
| 270 | let _ = execute_steps_parallel(exec, specs, None).await; |
| 271 | assert_eq!( |
| 272 | max_active.load(Ordering::SeqCst), |
| 273 | 2, |
| 274 | "never more than concurrency_hint steps run at once" |
| 275 | ); |
| 276 | } |
| 277 | |
| 278 | #[tokio::test] |
| 279 | async fn isolates_failed_and_panicked_steps() { |
nothing calls this directly
no test coverage detected