Skip to content

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

test(profiles): gate sqlite-only imports behind feature flag

Steven Enamakel3d348e355651
diff --git a/crates/openhuman-core/src/profiles/host_tests.rs b/crates/openhuman-core/src/profiles/host_tests.rs
index df217fb51b..285a595734 100644
--- a/crates/openhuman-core/src/profiles/host_tests.rs
+++ b/crates/openhuman-core/src/profiles/host_tests.rs
@@ -4,6 +4,7 @@ use crate::profiles::doctor::DoctorProfileState;
use crate::storage::test_support::memory_backend;
#[cfg(feature = "storage-sqlite")]
use crate::storage::test_support::sqlite_backend;
+#[cfg(feature = "storage-sqlite")]
use crate::storage::{CollectionSpec, Scope};
use std::collections::BTreeMap;
diff --git a/crates/openhuman-core/src/profiles/registry_tests.rs b/crates/openhuman-core/src/profiles/registry_tests.rs
index 4fd910f24f..fd0747e68a 100644
--- a/crates/openhuman-core/src/profiles/registry_tests.rs
+++ b/crates/openhuman-core/src/profiles/registry_tests.rs
@@ -2,7 +2,9 @@ use super::*;
use crate::storage::test_support::memory_backend;
#[cfg(feature = "storage-sqlite")]
use crate::storage::test_support::sqlite_backend;
-use tinystoragedrivers_types::{CollectionSpec, Precondition, Scope};
+use tinystoragedrivers_types::{CollectionSpec, Scope};
+#[cfg(feature = "storage-sqlite")]
+use tinystoragedrivers_types::Precondition;
fn meta(id: &str, created_at: u64) -> ProfileMeta {
ProfileMeta {