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(startup): close progressive handle in module provider test
Steven Enamakel62b8446b2c95
diff --git a/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs b/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rsindex e3395048c7..e7af0201b2 100644--- a/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs+++ b/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs@@ -110,7 +110,7 @@ async fn prepared_module_handle_keeps_progressive_send_alive() {runtime.lease.object().call_confidential(tinychannels_bus::methods::EXECUTE_PROGRESSIVE,(ProgressiveCommand::FeedOutput {- handle,+ handle: handle.clone(),turn_id: None,channel_ref: None,conversation: None,@@ -132,6 +132,18 @@ async fn prepared_module_handle_keeps_progressive_send_alive() {.await.expect("module-to-host-to-module send must not deadlock").expect("the configured module adapter should deliver the final message");+ // Close the finished handle so the module does not report the turn as+ // cancelled when the runtime shuts down.+ let closed: ProgressiveResult = runtime+ .lease+ .object()+ .call_confidential(+ tinychannels_bus::methods::EXECUTE_PROGRESSIVE,+ (ProgressiveCommand::Close { handle },),+ )+ .await+ .expect("the finished handle closes");+ assert_eq!(closed, ProgressiveResult::Closed);let receipt = match completed {ProgressiveResult::DeliveryOutcome { outcome } => {assert!(outcome.error.is_none());