From 8cc99020a8d1743ce7efb60c91a6f964ae9a8ea4 Mon Sep 17 00:00:00 2001 From: damocles Date: Sun, 15 Nov 2026 21:37:02 +0100 Subject: [PATCH] hive-agent: guard the unreported-window tests' harness dir --- hive-agent/src/turn.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hive-agent/src/turn.rs b/hive-agent/src/turn.rs index 21d29f54c..37d056ee6 100644 --- a/hive-agent/src/turn.rs +++ b/hive-agent/src/turn.rs @@ -917,6 +917,7 @@ mod tests { /// swarm sets. #[test] fn the_swarm_soft_limit_replaces_the_compaction_percent() { + let _dir = crate::paths::harness_dir_guard(); let bus = Bus::new(); let policy = |percent| SoftLimitPolicy { percent: PercentPolicy { @@ -952,6 +953,7 @@ mod tests { /// (`0`, off) before one is, instead of half a guessed size. #[test] fn the_auto_reset_watermark_waits_for_a_reported_window() { + let _dir = crate::paths::harness_dir_guard(); let bus = Bus::new(); assert_eq!(auto_reset_watermark_tokens(&bus), 0); bus.set_api_context_window(1_000_000); @@ -962,6 +964,7 @@ mod tests { /// however full the context: there is nothing to take a percent of. #[test] fn no_reported_window_means_no_proactive_compaction() { + let _dir = crate::paths::harness_dir_guard(); let policy = SoftLimitPolicy { percent: PercentPolicy { percent: 75,