Skip to content

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

test(memory): cover large build delay values in policy round-trip test

Steven Enamakelc9f249b9cae0
diff --git a/crates/openhuman-core/src/memory/lifecycle/views_tests.rs b/crates/openhuman-core/src/memory/lifecycle/views_tests.rs
index 428aa9a075..c4d9c8a1be 100644
--- a/crates/openhuman-core/src/memory/lifecycle/views_tests.rs
+++ b/crates/openhuman-core/src/memory/lifecycle/views_tests.rs
@@ -77,6 +77,14 @@ fn the_policy_round_trips_and_refuses_out_of_range_values() {
build_delay_secs: Some(u64::MAX),
..PolicySetParams::default()
},
+ PolicySetParams {
+ build_delay_secs: Some(i64::MAX as u64),
+ ..PolicySetParams::default()
+ },
+ PolicySetParams {
+ build_delay_secs: Some(10_000_000_000_000),
+ ..PolicySetParams::default()
+ },
] {
let before = serde_json::to_value(&config).unwrap();
let log_conversations = !config.memory.conversations.enabled;