Skip to content

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

test(security): add tests for ops credential operations

Steven Enamakelfd746067fcad
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 6d754b778e..198063f28c 100644
--- a/crates/openhuman-core/src/security/credentials/ops_credential_tests.rs
+++ b/crates/openhuman-core/src/security/credentials/ops_credential_tests.rs
@@ -472,7 +472,7 @@ async fn clearing_the_session_preserves_a_coexisting_api_key() {
// workspace must never outrank the key that was actually the active
// credential a moment ago. This RPC only removes the session; it must not
// let an unrelated leftover key silently become the effective one.
-#[tokio::test]
+#[tokio::test(flavor = "multi_thread")]
async fn clearing_the_session_preserves_the_active_key_over_a_stale_destination_key() {
// Reaches the connector module, whose route is process-wide: hold the module
// lock (before TEST_ENV_LOCK, the established order) for the whole test.