From cb9fbfc9da7b41b4411f41352b09f85fba91bb27 Mon Sep 17 00:00:00 2001 From: iris Date: Mon, 16 Nov 2026 04:54:18 +0100 Subject: [PATCH] hive-agent: the /clear-todos tests set a harness dir, as the bus reads one --- hive-agent/src/swarm_input.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hive-agent/src/swarm_input.rs b/hive-agent/src/swarm_input.rs index 489b00487..dd09bb148 100644 --- a/hive-agent/src/swarm_input.rs +++ b/hive-agent/src/swarm_input.rs @@ -261,6 +261,8 @@ mod tests { /// turn; any other body, even one that merely mentions it, goes through. #[tokio::test] async fn clear_todos_takes_its_message_and_marks_every_todo_done() { + // `Bus::new` reads the harness dir; the CI sandbox sets none. + let _harness = crate::paths::harness_dir_guard(); let dir = tempfile::tempdir().expect("a dir"); let todos = Todos::open(&dir.path().join("todos.sqlite")).expect("a store"); todos.upsert("router", Some("a"), "a", None, true).unwrap(); @@ -305,6 +307,7 @@ mod tests { #[test] fn clear_todos_without_a_store_says_so() { + let _harness = crate::paths::harness_dir_guard(); let bus = Bus::new(); let mut events = bus.subscribe(); assert!(clear_todos("/clear-todos", None, &bus));