Skip to content

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

test(inference): update http error tests with explicit provider name

Steven Enamakel22c89aa76e87
diff --git a/crates/openhuman-core/src/inference/provider/http_error_tests.rs b/crates/openhuman-core/src/inference/provider/http_error_tests.rs
index f55a3d4dc4..c9307e7687 100644
--- a/crates/openhuman-core/src/inference/provider/http_error_tests.rs
+++ b/crates/openhuman-core/src/inference/provider/http_error_tests.rs
@@ -454,19 +454,19 @@ mod provider_config_rejection_suppression {
// rule.)
assert!(!config_rejection_demoted(
&tinyinference_llm::failure::http::classify_http_failure(
- openhuman_backend_model::PROVIDER_LABEL,
+ "OpenHuman",
reqwest::StatusCode::BAD_REQUEST.as_u16(),
TIER_LEAK_BODY
),
- openhuman_backend_model::PROVIDER_LABEL
+ "OpenHuman"
));
assert!(!config_rejection_demoted(
&tinyinference_llm::failure::http::classify_http_failure(
- openhuman_backend_model::PROVIDER_LABEL,
+ "OpenHuman",
reqwest::StatusCode::BAD_REQUEST.as_u16(),
TEMP_BODY
),
- openhuman_backend_model::PROVIDER_LABEL
+ "OpenHuman"
));
}
@@ -490,11 +490,11 @@ mod provider_config_rejection_suppression {
assert!(
config_rejection_demoted(
&tinyinference_llm::failure::http::classify_http_failure(
- openhuman_backend_model::PROVIDER_LABEL,
+ "OpenHuman",
reqwest::StatusCode::BAD_REQUEST.as_u16(),
body
),
- openhuman_backend_model::PROVIDER_LABEL
+ "OpenHuman"
),
"TAURI-RUST-2Z1 body must be suppressed for openhuman backend: {body:?}"
);
@@ -574,11 +574,11 @@ mod provider_config_rejection_suppression {
assert!(
!config_rejection_demoted(
&tinyinference_llm::failure::http::classify_http_failure(
- openhuman_backend_model::PROVIDER_LABEL,
+ "OpenHuman",
reqwest::StatusCode::FORBIDDEN.as_u16(),
body
),
- openhuman_backend_model::PROVIDER_LABEL
+ "OpenHuman"
),
"backend 403 subscription phrase must NOT be suppressed (polarity guard)"
);