Skip to content

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

test: gate json rpc e2e tests behind their feature flags

Steven Enamakel7f3aae7db3bc
diff --git a/tests/json_rpc_config_e2e.rs b/tests/json_rpc_config_e2e.rs
index 3b14d314f7..048c2ca4c7 100644
--- a/tests/json_rpc_config_e2e.rs
+++ b/tests/json_rpc_config_e2e.rs
@@ -152,7 +152,6 @@ async fn json_rpc_config_update_browser_settings_persists_backend() {
rpc_join.abort();
}
-#[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;
diff --git a/tests/json_rpc_flows_e2e.rs b/tests/json_rpc_flows_e2e.rs
index 0cf9720aa7..e6ec43034d 100644
--- a/tests/json_rpc_flows_e2e.rs
+++ b/tests/json_rpc_flows_e2e.rs
@@ -1810,6 +1810,7 @@ async fn json_rpc_workflow_run_engine_executes_builtin_to_completion_inner() {
mock_join.abort();
}
+#[cfg(feature = "flows")]
#[tokio::test]
async fn json_rpc_flows_strict_create_refuses_binding_to_undeclared_agent_field() {
let _env_lock = json_rpc_e2e_env_lock_async().await;
diff --git a/tests/json_rpc_inference_e2e.rs b/tests/json_rpc_inference_e2e.rs
index 52dd441215..b5edd034c7 100644
--- a/tests/json_rpc_inference_e2e.rs
+++ b/tests/json_rpc_inference_e2e.rs
@@ -897,6 +897,7 @@ 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 65baf3391d..e04e120112 100644
--- a/tests/json_rpc_misc_e2e.rs
+++ b/tests/json_rpc_misc_e2e.rs
@@ -4,6 +4,7 @@
mod harness;
use harness::*;
+#[cfg(feature = "modules")]
#[tokio::test]
async fn json_rpc_modules_list_reports_the_serving_source() {
let _env_lock = json_rpc_e2e_env_lock_async().await;