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(json_rpc): compare min_duration_secs with tolerance in e2e test
Steven Enamakel4db2080e8889
diff --git a/tests/json_rpc_e2e.rs b/tests/json_rpc_e2e.rsindex 51f929c07c..71b976b724 100644--- a/tests/json_rpc_e2e.rs+++ b/tests/json_rpc_e2e.rs@@ -12284,7 +12284,13 @@ async fn json_rpc_voice_server_settings_rejects_retired_always_on_params() {.await;let after_outer = assert_no_jsonrpc_error(&after, "get_voice_server_settings after update");assert_eq!(after_outer["result"]["hotkey"], "F13");- assert_eq!(after_outer["result"]["min_duration_secs"], 0.4);+ let min_duration_secs = after_outer["result"]["min_duration_secs"]+ .as_f64()+ .expect("min_duration_secs should be numeric");+ assert!(+ (min_duration_secs - 0.4).abs() < 1e-6,+ "supported min_duration_secs update should round-trip: {min_duration_secs}"+ );rpc_join.abort();}