The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(flows): update flow test assertions and serialization
Steven Enamakel9d5054e08b60
diff --git a/crates/openhuman-core/src/flows/builder_tools_validate_and_create_tests.rs b/crates/openhuman-core/src/flows/builder_tools_validate_and_create_tests.rsindex dc7003c9bc..43eed44a69 100644--- a/crates/openhuman-core/src/flows/builder_tools_validate_and_create_tests.rs+++ b/crates/openhuman-core/src/flows/builder_tools_validate_and_create_tests.rs@@ -129,7 +129,7 @@ async fn edit_workflow_does_not_persist_an_incompatible_saved_child_reference()let child = crate::flows::store::create_flow(&config,"Legacy unsafe child".to_string(),- child_graph,+ serde_json::to_value(child_graph).unwrap(),false,false,)diff --git a/crates/openhuman-core/src/flows/ops_run_rows_and_notifications_tests.rs b/crates/openhuman-core/src/flows/ops_run_rows_and_notifications_tests.rsindex 6763f7d824..6e5ea9db96 100644--- a/crates/openhuman-core/src/flows/ops_run_rows_and_notifications_tests.rs+++ b/crates/openhuman-core/src/flows/ops_run_rows_and_notifications_tests.rs@@ -661,9 +661,13 @@ async fn flows_cancel_run_of_an_already_completed_run_errors() {.await.unwrap();let thread_id = run.value["thread_id"].as_str().unwrap().to_string();+ let before = flows_get_run(&config, &thread_id).await.unwrap().value;+ assert_eq!(before.status, "completed");let err = flows_cancel_run(&config, &thread_id).await.expect_err("cancelling an already-completed run must be a clear error");- assert!(err.contains("already terminal"), "got: {err}");+ assert!(err.contains("cancellation was not accepted"), "got: {err}");+ let after = flows_get_run(&config, &thread_id).await.unwrap().value;+ assert_eq!(after.status, "completed", "owner terminal row is unchanged");}