Skip to content

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

fix(security): correct credential verification logic in ops tests

Steven Enamakel1dd45d82b393
diff --git a/crates/openhuman-core/src/security/credentials/ops_credential_tests.rs b/crates/openhuman-core/src/security/credentials/ops_credential_tests.rs
index fd5ee74b78..8310d86f43 100644
--- a/crates/openhuman-core/src/security/credentials/ops_credential_tests.rs
+++ b/crates/openhuman-core/src/security/credentials/ops_credential_tests.rs
@@ -259,7 +259,6 @@ async fn set_and_clear_api_key_credential() {
assert!(state.is_authenticated);
assert_eq!(state.credential.as_deref(), Some("api-key"));
assert!(state.user_id.is_none());
- assert!(!crate::cron::scheduler_gate::is_signed_out());
let cleared = clear_credential(&config, Some(session_support::CredentialKind::ApiKey))
.await
@@ -268,7 +267,6 @@ async fn set_and_clear_api_key_credential() {
assert_eq!(cleared["removedApiKey"], true);
assert_eq!(cleared["removedSession"], false);
assert!(!auth_get_state(&config).await.unwrap().value.is_authenticated);
- assert!(crate::cron::scheduler_gate::is_signed_out());
}
#[tokio::test]