Skip to content

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

test(json_rpc_threads): use builtin agent registry init in e2e test

Steven Enamakel00e37420e0b0
diff --git a/tests/json_rpc_threads_e2e.rs b/tests/json_rpc_threads_e2e.rs
index 1145251900..92447d28a3 100644
--- a/tests/json_rpc_threads_e2e.rs
+++ b/tests/json_rpc_threads_e2e.rs
@@ -908,9 +908,8 @@ async fn json_rpc_threads_token_usage_reads_persisted_thread_totals() {
.await
.expect("load test config");
assert_eq!(config.workspace_dir, workspace);
- openhuman_core::agent_registry::host_definition::AgentDefinitionRegistry::init_global(
- &config.workspace_dir,
- );
+ openhuman_core::agent_registry::host_definition::AgentDefinitionRegistry::init_global_builtins()
+ .expect("initialize built-in agent definitions");
let backend = openhuman_core::storage::local::backend_for(&config.workspace_dir)
.expect("open test workspace storage");
let reports = openhuman_core::storage::import::sessions::run_with(&backend, &config);