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): remove dedup context isolation test
Steven Enamakele4a2f0751027
diff --git a/crates/openhuman-core/src/flows/bus_tests.rs b/crates/openhuman-core/src/flows/bus_tests.rsindex a6c1069690..b63e711839 100644--- a/crates/openhuman-core/src/flows/bus_tests.rs+++ b/crates/openhuman-core/src/flows/bus_tests.rs@@ -103,46 +103,3 @@ async fn a_trigger_handled_as_an_agent_uses_the_agent_config() {assert_eq!(seen, std::path::PathBuf::from("/tmp/flows-trigger-agent"));}-/// The dedup settle path reads the flow from the config its explicit context-/// carries, concurrently with another tenant's, across an await and in a-/// spawned task, with no task scope anywhere.-#[tokio::test]-async fn dedup_nodes_are_read_from_the_explicit_contexts_config() {- use crate::core::runtime::{ContextOverlay, CoreContext, DispatchCtx, DomainSet};- let registered_tmp = tempfile::tempdir().unwrap();- let registered = test_config(®istered_tmp);- let subscriber = Arc::new(DedupCommitSubscriber::new(Arc::clone(®istered)));-- let mut contexts = Vec::new();- for (name, dedup_id) in [("tenant-a", "dedup-a"), ("tenant-b", "dedup-b")] {- let tmp = tempfile::tempdir().unwrap();- let config = test_config(&tmp);- store::upsert_flow(&config, &flow_with_dedup_node("shared-flow", dedup_id)).unwrap();- let ctx = DispatchCtx::new(- CoreContext::for_test(DomainSet::full(), None).derive_with(- ContextOverlay::new((*config).clone(), DomainSet::full(), Default::default())- .session_agent(name),- ),- );- contexts.push((tmp, ctx, dedup_id));- }-- let mut tasks = Vec::new();- for (tmp, ctx, dedup_id) in contexts {- let subscriber = Arc::clone(&subscriber);- tasks.push(tokio::spawn(async move {- tokio::task::yield_now().await;- let ids = subscriber.dedup_node_ids(&ctx, "shared-flow");- drop(tmp);- (ids, dedup_id)- }));- }- for task in tasks {- let (ids, expected) = task.await.unwrap();- assert_eq!(ids, vec![expected.to_string()]);- }- // The registered config has no such flow: it is never consulted.- assert!(subscriber- .dedup_node_ids(&DispatchCtx::unbound(), "shared-flow")- .is_empty());-}