Watch
0
0
Fork
You've already forked hyperhive
0

hive-agent: guard the unreported-window tests' harness dir

This commit is contained in:
damocles 2026-11-15 21:37:02 +01:00 • committed by mara
commit 8cc99020a8

View file

@ -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,