Skip to content

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

fix(test): close missing braces in test helper functions

Steven Enamakel5237a2e8bfc9
diff --git a/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rs b/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rs
index ccc248eee0..2c7281492e 100644
--- a/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rs
@@ -82,6 +82,7 @@ fn mock_parent(model: Arc<dyn ChatModel<()>>) -> ParentExecutionContext {
run_queue: None,
host_env: Default::default(),
}
+}
fn test_config() -> (tempfile::TempDir, Config) {
let dir = tempfile::tempdir().expect("tempdir");
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs
index cf0d0b57e6..daf1f2cca8 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs
@@ -129,3 +129,4 @@ fn parent_context(workspace_dir: &Path) -> ParentExecutionContext {
run_queue: None,
host_env: Default::default(),
}
+}
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs
index 2b76dc8dd4..0d9b770776 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs
@@ -588,6 +588,7 @@ fn parent_context(workspace_dir: &Path) -> ParentExecutionContext {
run_queue: None,
host_env: Default::default(),
}
+}
/// The session builder swaps in a scoped instance so the WIRE schema (read
/// from the registered tool on native tool calling) carries only the ids the
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs
index 34f5e2dec4..e5ea00c5c2 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs
@@ -39,6 +39,7 @@ fn test_parent_ctx(workspace_dir: PathBuf) -> ParentExecutionContext {
tool_call_format: tinytools_agent::dialect::ToolCallFormat::Native,
host_env: Default::default(),
}
+}
#[tokio::test]
async fn rejects_if_already_worker_thread() {
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
index 23285228c7..6b2c5ff387 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
@@ -506,6 +506,7 @@ fn parent_context(
run_queue: None,
host_env: Default::default(),
}
+}
struct ScriptedModel {
responses: Vec<(&'static str, &'static str)>,
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs
index e48158c5f8..ee882b4ab6 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs
@@ -282,6 +282,7 @@ fn make_parent(
run_queue: None,
host_env: Default::default(),
}
+}
// ── Runtime spawn-hierarchy (tier) gate (issue #4098) ───────────────────────
// `tier_gate_decision` is the pure decision the runtime gate in `run_subagent`
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs b/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs
index 79fef17552..3385f382a3 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs
@@ -268,6 +268,7 @@ fn stale_parent_snapshot() -> ParentExecutionContext {
run_queue: None,
host_env: Default::default(),
}
+}
/// Round-trips one real `SubagentSpawned` through `sink` and asserts it lands
/// on `rx`, the receiver belonging to the run whose sink the bind was supposed
diff --git a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs
index a407f0c883..7187187aae 100644
--- a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs
@@ -118,6 +118,7 @@ fn parent_execution_context(workspace_dir: &Path) -> ParentExecutionContext {
run_queue: None,
host_env: Default::default(),
}
+}
/// Builds the `use_skill` registration exactly as
/// `register_turn_tools_and_agents` does: a durable registry containing the