Skip to content

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

test(json_rpc): tidy e2e test files and relocate task-sources doc comment

Steven Enamakel6a65544eaa18
diff --git a/tests/json_rpc_config_e2e.rs b/tests/json_rpc_config_e2e.rs
index b76dd80dc8..3b14d314f7 100644
--- a/tests/json_rpc_config_e2e.rs
+++ b/tests/json_rpc_config_e2e.rs
@@ -74,7 +74,6 @@ async fn json_rpc_legacy_provider_type_preserves_default_endpoint() {
rpc_join.abort();
}
-
#[tokio::test]
async fn json_rpc_config_update_browser_settings_persists_backend() {
let _env_lock = json_rpc_e2e_env_lock_async().await;
@@ -154,7 +153,6 @@ async fn json_rpc_config_update_browser_settings_persists_backend() {
}
#[cfg(feature = "modules")]
-
#[tokio::test]
async fn json_rpc_reasoning_effort_persists_and_rejects_unknown_levels() {
let _env_lock = json_rpc_e2e_env_lock_async().await;
@@ -232,7 +230,6 @@ async fn json_rpc_reasoning_effort_persists_and_rejects_unknown_levels() {
rpc_join.abort();
}
-
#[tokio::test]
async fn json_rpc_config_autonomy_settings_roundtrip() {
let _env_lock = json_rpc_e2e_env_lock_async().await;
@@ -546,7 +543,6 @@ async fn json_rpc_config_agent_timeout_settings_roundtrip() {
// 7788 becomes available again — matching the "repro gone" acceptance
// criterion from issue #2617.
-
#[tokio::test]
async fn port_conflict_recovery_core_starts_on_fallback_port_e2e() {
let _env_lock = json_rpc_e2e_env_lock_async().await;
@@ -635,11 +631,3 @@ async fn port_conflict_recovery_core_starts_on_fallback_port_e2e() {
// Release the listener so the port is not held across tests.
drop(after_drop.listener);
}
-
-/// Task-sources CRUD + status + dry-run over JSON-RPC.
-///
-/// Exercises `openhuman.task_sources_{add,list,get,update,remove,status,
-/// list_tasks,preview_filter}` against an isolated HOME workspace. The
-/// fetch/preview paths require no network here: with no signed-in
-/// Composio session, `preview_filter` returns a clean JSON-RPC error
-/// rather than hanging.
diff --git a/tests/json_rpc_inference_e2e.rs b/tests/json_rpc_inference_e2e.rs
index 5b6ad97869..d8e4063a6c 100644
--- a/tests/json_rpc_inference_e2e.rs
+++ b/tests/json_rpc_inference_e2e.rs
@@ -904,7 +904,6 @@ async fn voice_test_provider_honours_validate_only_for_the_stt_workload() {
// ─────────────────────────────────────────────────────────────────────────────
/// A `tool_call` arg reading a field the target agent's declared schema omits.
-#[cfg(feature = "flows")]
fn graph_binding_to_undeclared_agent_field() -> Value {
json!({
"name": "undeclared-field",
diff --git a/tests/json_rpc_misc_e2e.rs b/tests/json_rpc_misc_e2e.rs
index 447bbaaad8..65baf3391d 100644
--- a/tests/json_rpc_misc_e2e.rs
+++ b/tests/json_rpc_misc_e2e.rs
@@ -1094,6 +1094,13 @@ async fn skills_uninstall_rpc_e2e() {
/// POST /rpc without any Authorization header → 401 with error=unauthorized.
+/// Task-sources CRUD + status + dry-run over JSON-RPC.
+///
+/// Exercises `openhuman.task_sources_{add,list,get,update,remove,status,
+/// list_tasks,preview_filter}` against an isolated HOME workspace. The
+/// fetch/preview paths require no network here: with no signed-in
+/// Composio session, `preview_filter` returns a clean JSON-RPC error
+/// rather than hanging.
/// Task-sources CRUD + status + dry-run over JSON-RPC.
///
/// Exercises `openhuman.task_sources_{add,list,get,update,remove,status,