Skip to content

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

test(web_chat): assert provider error source and retryable flag

Steven Enamakel28949568d25c
diff --git a/crates/openhuman-core/src/web_chat/web_tests_turn_lifecycle_tests.rs b/crates/openhuman-core/src/web_chat/web_tests_turn_lifecycle_tests.rs
index da90d12987..5e406f479c 100644
--- a/crates/openhuman-core/src/web_chat/web_tests_turn_lifecycle_tests.rs
+++ b/crates/openhuman-core/src/web_chat/web_tests_turn_lifecycle_tests.rs
@@ -267,6 +267,8 @@ async fn a_turn_with_an_unavailable_local_provider_ends_in_one_classified_chat_e
Some("chat_error.provider_unavailable"),
"{error:?}"
);
+ assert_eq!(error.error_source.as_deref(), Some("provider_error"), "{error:?}");
+ assert_eq!(error.error_retryable, Some(true), "{error:?}");
let runtime = crate::web_chat::runner::runtime(&ctx);
assert!(