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,