Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(memory): say ok_until panics on a call unanswered at its deadline

M3gA-Mind90795a800519
diff --git a/tests/memory_v2_e2e.rs b/tests/memory_v2_e2e.rs
index ae9365c102..61273f83b8 100644
--- a/tests/memory_v2_e2e.rs
+++ b/tests/memory_v2_e2e.rs
@@ -257,8 +257,9 @@ impl Fixture {
}
/// [`Self::ok`] repeated until `done` holds for the result, or ten
- /// seconds pass (the last result is returned): for reads of a write the
- /// engine may index after it answers.
+ /// seconds pass, when the last result is returned: for reads of a write
+ /// the engine may index after it answers. A call still unanswered at the
+ /// deadline panics.
async fn ok_until(&self, method: &str, params: Value, done: impl Fn(&Value) -> bool) -> Value {
let deadline = std::time::Instant::now() + std::time::Duration::from_secs(10);
loop {