Skip to content

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

test(core): update test signatures and usage

Steven Enamakel5d02ea7ab3a0
diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_driver_tests.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_driver_tests.rs
index 4556522873..32d4a13781 100644
--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_driver_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_driver_tests.rs
@@ -75,7 +75,8 @@ fn change_status(session: &mut DurableSubagentSession) {
#[test]
fn observed_mutation_rejects_a_stale_parent_thread_task_lifecycle_or_status() {
- let changes: [(&str, fn(&mut DurableSubagentSession)); 5] = [
+ type SessionChange = fn(&mut DurableSubagentSession);
+ let changes: [(&str, SessionChange); 5] = [
("parent", change_parent),
("thread", change_thread),
("task", change_task),
diff --git a/crates/openhuman-core/src/flows/store_tests.rs b/crates/openhuman-core/src/flows/store_tests.rs
index c15cb53ba6..492363a6ef 100644
--- a/crates/openhuman-core/src/flows/store_tests.rs
+++ b/crates/openhuman-core/src/flows/store_tests.rs
@@ -75,7 +75,7 @@ fn catalog_clients_preserve_definition_revisions_and_suggestion_semantics() {
source_run_id: None,
};
assert_eq!(
- upsert_suggestions(&config, &[suggestion.clone()]).unwrap(),
+ upsert_suggestions(&config, std::slice::from_ref(&suggestion)).unwrap(),
1
);
assert_eq!(