Skip to content

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

test(inference): update session error assertion in factory model gate tests

Steven Enamakeld306ea32e073
diff --git a/crates/openhuman-core/src/inference/provider/factory_model_gate_tests.rs b/crates/openhuman-core/src/inference/provider/factory_model_gate_tests.rs
index b21d364a89..6cc16007ef 100644
--- a/crates/openhuman-core/src/inference/provider/factory_model_gate_tests.rs
+++ b/crates/openhuman-core/src/inference/provider/factory_model_gate_tests.rs
@@ -58,6 +58,6 @@ async fn turn_factory_checks_privacy_then_explicit_host_session_before_building_
Err(error) => error,
Ok(_) => panic!("explicit CLI dispatch must require a session despite ambient Library"),
};
- assert!(session_error.to_string().contains("session"));
+ assert!(session_error.to_string().contains("SESSION_EXPIRED"));
assert!(builds.lock().expect("build counter").is_empty());
}