Skip to content

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

test(storage): harden transcript fixture setup

Steven Enamakel3fc7ce97d319
diff --git a/crates/openhuman-core/src/storage/sessions/splice_fixture_tests.rs b/crates/openhuman-core/src/storage/sessions/splice_fixture_tests.rs
index 589fd6a94d..bf74ee79ee 100644
--- a/crates/openhuman-core/src/storage/sessions/splice_fixture_tests.rs
+++ b/crates/openhuman-core/src/storage/sessions/splice_fixture_tests.rs
@@ -19,7 +19,8 @@ pub(crate) fn memory_session_provider() -> Arc<dyn SessionStoreProvider> {
let backend = crate::storage::test_support::memory_backend();
let factory: AgentStorageFactory = Arc::new(move |_| {
- let scope = tinystoragedrivers_types::Scope::new("transcript-fixture")?;
+ let scope = tinystoragedrivers_types::Scope::new("transcript-fixture")
+ .expect("valid fixture scope");
let storage = backend.for_scope(&scope)?;
Ok(tinyagents_storage_kit::ScopedStorage::new(storage, scope))
});
diff --git a/crates/openhuman-core/src/threads/transcript_host_tests.rs b/crates/openhuman-core/src/threads/transcript_host_tests.rs
index 867516afc4..be6e81983c 100644
--- a/crates/openhuman-core/src/threads/transcript_host_tests.rs
+++ b/crates/openhuman-core/src/threads/transcript_host_tests.rs
@@ -10,6 +10,7 @@ use std::sync::Arc;
use crate::storage::sessions::splice_fixture_tests::{memory_locator, memory_session_provider};
use tempfile::TempDir;
+use tinyagents_session::port::SessionStoreProvider;
use tinyagents_session::transcript::view::{
project_records, project_thread_in, DisplayItem, ToolCallStatus,
};