Skip to content

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

test(storage): pin persistent default in import schema tests

Steven Enamakel94ffca5e338c
diff --git a/crates/openhuman-core/src/storage/import/schemas_tests.rs b/crates/openhuman-core/src/storage/import/schemas_tests.rs
index ff67bc318f..741415f980 100644
--- a/crates/openhuman-core/src/storage/import/schemas_tests.rs
+++ b/crates/openhuman-core/src/storage/import/schemas_tests.rs
@@ -73,6 +73,8 @@ fn an_unknown_function_gets_the_error_schema() {
/// touches the operator's home.
async fn run_import(workspace: Option<&std::path::Path>) -> Value {
let configured = tempfile::TempDir::new().unwrap();
+ #[cfg(feature = "storage-sqlite")]
+ crate::storage::local::use_persistent_default_for_test(configured.path());
let _env = crate::config::test_env::EnvVarGuard::workspace_async(configured.path()).await;
let mut params = Map::new();
if let Some(workspace) = workspace {