hive-agent: guard the unreported-window tests' harness dir
This commit is contained in:
parent
e076290eb1
commit
8cc99020a8
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue