Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

test(run): stop asserting that three round-trips fit in 100ms (#501)

Fabio Akitaf594e2d9bc07
diff --git a/crates/ai-memory-cli/src/commands/run.rs b/crates/ai-memory-cli/src/commands/run.rs
index 372fd23a..b3362b0e 100644
--- a/crates/ai-memory-cli/src/commands/run.rs
+++ b/crates/ai-memory-cli/src/commands/run.rs
@@ -1618,7 +1618,16 @@ mod tests {
let prepared = prepare_managed_run_with_retry(
&endpoint,
&request,
- Duration::from_millis(100),
+ // A wall-clock give-up deadline, not a latency assertion. This
+ // test is about the retry loop reaching the third attempt, and at
+ // 100ms it was really asserting that three HTTP round-trips fit
+ // inside 100ms — which a loaded CI runner does not guarantee, so
+ // it failed intermittently on both ubuntu and macOS with the
+ // 409 the mock is supposed to retry past. The window is generous
+ // because nothing here should depend on its size; the loop still
+ // returns the instant the third attempt succeeds, so the fast
+ // path stays a few milliseconds.
+ Duration::from_secs(5),
Duration::from_millis(1),
)
.await