Skip to content

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

test(transcript_search): isolate e2e tests with storage case

Steven Enamakel79b0c3862b79
diff --git a/tests/in_process/transcript_search_e2e.rs b/tests/in_process/transcript_search_e2e.rs
index b226185111..b63022973d 100644
--- a/tests/in_process/transcript_search_e2e.rs
+++ b/tests/in_process/transcript_search_e2e.rs
@@ -103,6 +103,8 @@ fn seed_workspace(workspace: &Path) -> ConversationStore {
#[tokio::test]
async fn transcript_search_op_finds_message_in_prior_thread() {
let _lock = env_lock_async().await;
+ let storage = crate::storage_case::Case::open();
+ storage.install();
let tmp = tempdir().expect("tempdir");
let _home = EnvVarGuard::set_to_path("HOME", tmp.path());
let workspace = tmp.path().join("workspace");
@@ -134,6 +136,8 @@ async fn transcript_search_op_finds_message_in_prior_thread() {
#[tokio::test]
async fn transcript_search_op_honours_exclude_thread() {
let _lock = env_lock_async().await;
+ let storage = crate::storage_case::Case::open();
+ storage.install();
let tmp = tempdir().expect("tempdir");
let _home = EnvVarGuard::set_to_path("HOME", tmp.path());
let workspace = tmp.path().join("workspace");
@@ -155,6 +159,8 @@ async fn transcript_search_op_honours_exclude_thread() {
#[tokio::test]
async fn transcript_search_op_returns_empty_on_no_match() {
let _lock = env_lock_async().await;
+ let storage = crate::storage_case::Case::open();
+ storage.install();
let tmp = tempdir().expect("tempdir");
let _home = EnvVarGuard::set_to_path("HOME", tmp.path());
let workspace = tmp.path().join("workspace");
diff --git a/tests/in_process_all.rs b/tests/in_process_all.rs
index 7074459047..554b649fe8 100644
--- a/tests/in_process_all.rs
+++ b/tests/in_process_all.rs
@@ -35,6 +35,8 @@ pub mod rpc_auth;
pub mod rpc_harness;
#[path = "support/scripted_stack.rs"]
pub mod scripted_stack;
+#[path = "support/storage_case.rs"]
+pub mod storage_case;
#[path = "support/tinyhumans_boot.rs"]
pub mod tinyhumans_boot;