Skip to content

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

test(orchestration): use valid rfc3339 timestamps in spawn worker thread tests

Steven Enamakelfe044107f4b0
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs
index bfe5833de8..9d005fee02 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs
@@ -50,7 +50,7 @@ async fn rejects_if_already_worker_thread() {
CreateConversationThread {
id: thread_id.to_string(),
title: "Worker".into(),
- created_at: "now".into(),
+ created_at: chrono::Utc::now().to_rfc3339(),
parent_thread_id: None,
labels: Some(vec!["tasks".to_string()]),
personality_id: None,
@@ -77,7 +77,7 @@ async fn rejects_if_has_parent_thread_id() {
CreateConversationThread {
id: thread_id.to_string(),
title: "Sub".into(),
- created_at: "now".into(),
+ created_at: chrono::Utc::now().to_rfc3339(),
parent_thread_id: Some("parent".into()),
labels: None,
personality_id: None,