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.
|
/// swarm sets.
|
||||||
#[test]
|
#[test]
|
||||||
fn the_swarm_soft_limit_replaces_the_compaction_percent() {
|
fn the_swarm_soft_limit_replaces_the_compaction_percent() {
|
||||||
|
let _dir = crate::paths::harness_dir_guard();
|
||||||
let bus = Bus::new();
|
let bus = Bus::new();
|
||||||
let policy = |percent| SoftLimitPolicy {
|
let policy = |percent| SoftLimitPolicy {
|
||||||
percent: PercentPolicy {
|
percent: PercentPolicy {
|
||||||
|
|
@ -952,6 +953,7 @@ mod tests {
|
||||||
/// (`0`, off) before one is, instead of half a guessed size.
|
/// (`0`, off) before one is, instead of half a guessed size.
|
||||||
#[test]
|
#[test]
|
||||||
fn the_auto_reset_watermark_waits_for_a_reported_window() {
|
fn the_auto_reset_watermark_waits_for_a_reported_window() {
|
||||||
|
let _dir = crate::paths::harness_dir_guard();
|
||||||
let bus = Bus::new();
|
let bus = Bus::new();
|
||||||
assert_eq!(auto_reset_watermark_tokens(&bus), 0);
|
assert_eq!(auto_reset_watermark_tokens(&bus), 0);
|
||||||
bus.set_api_context_window(1_000_000);
|
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.
|
/// however full the context: there is nothing to take a percent of.
|
||||||
#[test]
|
#[test]
|
||||||
fn no_reported_window_means_no_proactive_compaction() {
|
fn no_reported_window_means_no_proactive_compaction() {
|
||||||
|
let _dir = crate::paths::harness_dir_guard();
|
||||||
let policy = SoftLimitPolicy {
|
let policy = SoftLimitPolicy {
|
||||||
percent: PercentPolicy {
|
percent: PercentPolicy {
|
||||||
percent: 75,
|
percent: 75,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue