Skip to content

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

test(connect): move persistent default setup to offline snapshot test

Steven Enamakelda9a0388ff85
diff --git a/crates/openhuman-core/src/channels/controllers/ops/connect/memory_tests.rs b/crates/openhuman-core/src/channels/controllers/ops/connect/memory_tests.rs
index 2b5bc1eade..92376eebe7 100644
--- a/crates/openhuman-core/src/channels/controllers/ops/connect/memory_tests.rs
+++ b/crates/openhuman-core/src/channels/controllers/ops/connect/memory_tests.rs
@@ -332,8 +332,6 @@ async fn reserved_channel_thread_id_survives_metadata_edit_without_prefix_collis
let mut config = Config::default();
config.workspace_dir = tmp.path().to_path_buf();
config.memory.engine.clear();
- #[cfg(feature = "storage-sqlite")]
- crate::storage::local::use_persistent_default_for_test(&config.workspace_dir);
use_linked_channel_module(&mut config).await;
let ctx = DispatchCtx::ambient();
let target = store_channel_thread(
@@ -388,6 +386,8 @@ async fn offline_snapshot_scans_every_thread_and_message_page() {
let mut config = Config::default();
config.workspace_dir = tmp.path().to_path_buf();
config.memory.engine.clear();
+ #[cfg(feature = "storage-sqlite")]
+ crate::storage::local::use_persistent_default_for_test(&config.workspace_dir);
use_linked_channel_module(&mut config).await;
let workspace = config.workspace_dir.clone();
let ctx = DispatchCtx::ambient();