Skip to content

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

fix(test): update session expiry test to use correct module path

Steven Enamakelb6dc274717b8
diff --git a/crates/openhuman-core/src/core/session_expiry_tests.rs b/crates/openhuman-core/src/core/session_expiry_tests.rs
index 3adc78adad..1aa44f1f25 100644
--- a/crates/openhuman-core/src/core/session_expiry_tests.rs
+++ b/crates/openhuman-core/src/core/session_expiry_tests.rs
@@ -18,13 +18,13 @@ fn is_session_expired_error_matches_backend_path_401() {
#[test]
fn is_session_expired_error_matches_flattened_backend_unauthorized() {
// #3297: after #2781 the backend 401 is a typed `BackendApiError::Unauthorized`
- // that team/billing ops flatten via `api::flatten_authed_error`. The dispatcher
+ // that team/billing ops flatten via `backend::flatten_authed_error`. The dispatcher
// classifier MUST recognise that flattened string as session expiry, so the
// 401 is suppressed from Sentry (TAURI-RUST-8WY on `/teams/me/usage`,
// TAURI-RUST-8WZ on `/payments/stripe/currentPlan`) AND triggers the
// `SessionExpired` publish. End-to-end: build the typed error → flatten → classify.
- let flat = crate::api::flatten_authed_error(anyhow::Error::new(
- crate::api::BackendApiError::Unauthorized {
+ let flat = crate::backend::flatten_authed_error(anyhow::Error::new(
+ crate::backend::BackendApiError::Unauthorized {
method: "GET".to_string(),
path: "/teams/me/usage".to_string(),
},