Skip to content

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

chore: files changed crates/openhuman-core/src/storage/agents_tests.rs

Steven Enamakela9e58656057d
diff --git a/crates/openhuman-core/src/storage/agents_tests.rs b/crates/openhuman-core/src/storage/agents_tests.rs
index 67fc428d45..f48e8af462 100644
--- a/crates/openhuman-core/src/storage/agents_tests.rs
+++ b/crates/openhuman-core/src/storage/agents_tests.rs
@@ -103,8 +103,9 @@ fn an_agent_is_recorded_once_per_backend() {
})
.unwrap();
record_in(Arc::clone(&first), "agents-test-once");
- assert!(recorded(first).is_empty());
+ assert!(recorded(Arc::clone(&first)).is_empty());
// Another backend is a separate record.
+ // `first` stays alive so `second` cannot reuse its address (the cache key).
let second = memory_backend();
record_in(Arc::clone(&second), "agents-test-once");
assert_eq!(recorded(second), vec!["agents-test-once".to_string()]);