Skip to content

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

test(threads): gate legacy import tests on sqlite storage

Steven Enamakel3c7e1d80ada6
diff --git a/crates/openhuman-core/src/threads/store/legacy_import_tests.rs b/crates/openhuman-core/src/threads/store/legacy_import_tests.rs
index 2a41b57384..92623297c5 100644
--- a/crates/openhuman-core/src/threads/store/legacy_import_tests.rs
+++ b/crates/openhuman-core/src/threads/store/legacy_import_tests.rs
@@ -53,8 +53,10 @@ fn snapshot(root: &Path) -> Vec<(std::path::PathBuf, Vec<u8>)> {
}
#[test]
+#[cfg(feature = "storage-sqlite")]
fn legacy_jsonl_conversations_are_imported_and_the_files_stay_byte_identical() {
let dir = tempfile::tempdir().unwrap();
+ crate::storage::local::use_persistent_default_for_test(dir.path());
let root = backend::legacy_root(dir.path());
let (m1, m2) = (
message("m1", "hello", "2026-01-01T00:00:01Z"),
@@ -169,8 +171,10 @@ fn legacy_tsd_v1_threads_and_messages_are_migrated_before_owner_reads() {
}
#[test]
+#[cfg(feature = "storage-sqlite")]
fn legacy_import_runs_once_even_when_the_files_change_afterwards() {
let dir = tempfile::tempdir().unwrap();
+ crate::storage::local::use_persistent_default_for_test(dir.path());
let root = backend::legacy_root(dir.path());
let m1 = message("m1", "hello", "2026-01-01T00:00:01Z");
write_legacy(&root, &[&upsert("t1", "First")], &[("t1", &[m1.as_str()])]);