Skip to content

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

test(agent-harness): pin prompt clock in capture identity test

Steven Enamakele62a7830e773
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rs
index 33b12684b5..13f41f6eb4 100644
--- a/tests/agent_harness_e2e.rs
+++ b/tests/agent_harness_e2e.rs
@@ -1096,6 +1096,11 @@ fn managed_host_requests_repeat_with_the_same_capture_identity() {
async fn managed_host_requests_repeat_with_the_same_capture_identity_inner() {
let _lock = env_lock();
+ let _prompt_clock = openhuman_core::prompts::register_prompt_clock(|| {
+ chrono::DateTime::parse_from_rfc3339("2024-01-15T12:00:00Z")
+ .expect("fixed capture instant")
+ .with_timezone(&chrono::Utc)
+ });
let phase = std::env::var("OPENHUMAN_MANAGED_CAPTURE_PHASE")
.unwrap_or_else(|_| "self-contained".to_owned());
let (capture_root, _temp_guard) = match std::env::var_os("OPENHUMAN_MANAGED_CAPTURE_DIR") {