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
chore: files changed crates/openhuman-core/src/flows/ops_tests.rs,crates/openhuman-core/src/flows/op
Steven Enamakelcd7a547a037b
diff --git a/crates/openhuman-core/src/flows/ops_run_finalizer_tests.rs b/crates/openhuman-core/src/flows/ops_run_finalizer_tests.rsnew file mode 100644index 0000000000..8653f59c95--- /dev/null+++ b/crates/openhuman-core/src/flows/ops_run_finalizer_tests.rs@@ -0,0 +1,29 @@+use super::*;++#[tokio::test]+async fn dropping_finalizer_for_terminal_run_does_not_rewrite_flow_summary() {+ let tmp = TempDir::new().unwrap();+ let config = test_config(&tmp);+ let flow = store::create_flow(+ &config,+ "terminal-finalizer-race".to_string(),+ structurally_valid_graph(trigger_only_graph()),+ false,+ true,+ )+ .unwrap();+ let run_id = "terminal-finalizer-race-run";+ let now = Utc::now().to_rfc3339();+ store::insert_flow_run(&config, run_id, &flow.id, run_id, &now).unwrap();+ assert!(+ store::finish_flow_run(&config, run_id, "completed", &now, &[], &[], None, None,).unwrap()+ );++ let config = Arc::new(config);+ drop(RunRowFinalizer::new(config.clone(), run_id, &flow.id));++ let row = store::get_flow_run(&config, run_id).unwrap().unwrap();+ assert_eq!(row.status, "completed");+ let flow = store::get_flow(&config, &flow.id).unwrap().unwrap();+ assert!(flow.last_status.is_none());+}diff --git a/crates/openhuman-core/src/flows/ops_tests.rs b/crates/openhuman-core/src/flows/ops_tests.rsindex 2983de8185..931d1f2fdc 100644--- a/crates/openhuman-core/src/flows/ops_tests.rs+++ b/crates/openhuman-core/src/flows/ops_tests.rs@@ -660,10 +660,10 @@ mod inference_gate_tests;mod migration_and_side_effect_tests;#[path = "ops_resume_checkpoint_tests.rs"]mod resume_checkpoint_tests;-#[path = "ops_run_lifecycle_tests.rs"]-mod run_lifecycle_tests;#[path = "ops_run_finalizer_tests.rs"]mod run_finalizer_tests;+#[path = "ops_run_lifecycle_tests.rs"]+mod run_lifecycle_tests;#[path = "ops_run_rows_and_notifications_tests.rs"]mod run_rows_and_notifications_tests;#[path = "ops_run_status_and_prompt_binding_tests.rs"]