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
fix(ops_tier_gate_and_timeouts): correct test assertion for timeout handling
Steven Enamakeld2cb29c6c722
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_gate_and_timeouts_tests.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_gate_and_timeouts_tests.rsindex 0e5cb935ee..28caf87749 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_gate_and_timeouts_tests.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_gate_and_timeouts_tests.rs@@ -624,8 +624,3 @@ fn response_fields_from_schema_empty_for_none_or_non_object() {assert!(response_fields_from_schema(Some(&json!("not an object"))).is_empty());assert!(response_fields_from_schema(Some(&json!({}))).is_empty());}--// ── unsupported_arg_names (B13) ──────────────────────────────────────────-// Direct unit tests for the pure name-validity check — see-// `openhuman::flows::ops_tests` for the end-to-end-// `validate_tool_contracts` coverage of the same behavior.diff --git a/tests/raw_coverage/channels_lark_email_dispatch_round21_raw_coverage_e2e.rs b/tests/raw_coverage/channels_lark_email_dispatch_round21_raw_coverage_e2e.rsindex 37eaf3b373..771d7f873d 100644--- a/tests/raw_coverage/channels_lark_email_dispatch_round21_raw_coverage_e2e.rs+++ b/tests/raw_coverage/channels_lark_email_dispatch_round21_raw_coverage_e2e.rs@@ -129,53 +129,10 @@ fn email_parser_support_covers_text_html_attachment_and_message_building() {}#[tokio::test]-async fn discord_loopback_support_covers_lists_auth_errors_and_permission_overwrites() {- let guild_app = Router::new().route(- "/users/@me/guilds",- get(|| async {- Json(json!([- {"id": "g2", "name": "Guild Two", "icon": null},- {"id": "g1", "name": "Guild One", "icon": "hash"}- ]))- }),- );- let base = spawn_mock(guild_app).await;- let guilds = discord_support::list_bot_guilds_at_base_for_test(&base, "token")- .await- .expect("guilds");- assert_eq!(guilds.len(), 2);- assert_eq!(guilds[1].icon.as_deref(), Some("hash"));-- let channel_app = Router::new().route(- "/guilds/{guild_id}/channels",- get(|Path(guild_id): Path<String>| async move {- assert_eq!(guild_id, "g1");- Json(json!([- {"id": "voice", "name": "Voice", "type": 2, "position": 0, "parent_id": null},- {"id": "late", "name": "Late", "type": 0, "position": 4, "parent_id": "cat"},- {"id": "early", "name": "Early", "type": 0, "position": 1, "parent_id": null}- ]))- }),- );- let base = spawn_mock(channel_app).await;- let channels = discord_support::list_guild_channels_at_base_for_test(&base, "token", "g1")- .await- .expect("channels");- assert_eq!(- channels.iter().map(|c| c.id.as_str()).collect::<Vec<_>>(),- vec!["early", "late"]- );-- let auth_error = discord_support::format_discord_http_error_for_test(- "list_guilds",- ReqwestStatusCode::UNAUTHORIZED,- r#"{"message":"401: Unauthorized"}"#,- );- let lower = auth_error.to_ascii_lowercase();- assert!(!lower.contains("401"));- assert!(!lower.contains("unauthorized"));- assert!(auth_error.contains("Settings"));-+async fn discord_permission_check_covers_member_overwrite_and_bot_lookup_failure() {+ // Guild/channel listing and the 401 rewrap are covered in+ // `vendor/tinychannels/src/providers/discord/api_tests.rs`; this keeps the+ // role-overwrite + member-overwrite combination and the `get_bot_user` failure.let permission_app = Router::new().route("/users/@me", get(|| async { Json(json!({"id": "bot-1"})) })).route(