Skip to content

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

test(session_store): cover session store edge cases

Steven Enamakel91dd15bf3822
diff --git a/crates/openhuman-core/src/agent/session_store/mod_tests.rs b/crates/openhuman-core/src/agent/session_store/mod_tests.rs
index f459804a68..3991bde3a8 100644
--- a/crates/openhuman-core/src/agent/session_store/mod_tests.rs
+++ b/crates/openhuman-core/src/agent/session_store/mod_tests.rs
@@ -14,20 +14,3 @@ async fn a_scoped_provider_serves_only_its_own_task() {
Some(provider.for_agent("u1").transcripts.destination_key())
);
}
-
-/// The process-wide slot, exercised by one test so no other test in this
-/// binary sees it set.
-#[test]
-fn installing_routes_every_agent_until_cleared() {
- assert!(!clear(), "nothing installed yet");
- let provider: Arc<dyn SessionStoreProvider> = Arc::new(InMemorySessionStores::new());
- install(provider.clone());
- assert!(is_installed());
- let stores = for_agent(DEFAULT_AGENT).expect("installed");
- assert_eq!(
- stores.transcripts.destination_key(),
- provider.for_agent(DEFAULT_AGENT).transcripts.destination_key()
- );
- assert!(clear());
- assert!(for_agent("u1").is_none());
-}