Skip to content

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

test(storage): gate lease model tests behind storage-sqlite feature

Steven Enamakel5773c41b4e1c
diff --git a/crates/openhuman-core/src/storage/lease_model_tests.rs b/crates/openhuman-core/src/storage/lease_model_tests.rs
index bf60158b78..b45a366704 100644
--- a/crates/openhuman-core/src/storage/lease_model_tests.rs
+++ b/crates/openhuman-core/src/storage/lease_model_tests.rs
@@ -1,3 +1,5 @@
+#![cfg(feature = "storage-sqlite")]
+
//! Model-based tests: random acquire / renew / release / clock / crash runs
//! across 2–4 nodes on one `MemoryStorage`, checked step by step against a
//! small reference model of the lease rules, plus the safety invariants:
@@ -8,8 +10,6 @@
//! expires, and the taker sees `previous_unclean`;
//! - a renew (or release) after the record moved on is always `Lost`.
-#![cfg(feature = "storage-sqlite")]
-
use super::*;
use std::time::Duration;