Skip to content

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

test: tidy test module attributes and formatting

Steven Enamakeldca5420f6969
diff --git a/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs b/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs
index 22da070374..531934c425 100644
--- a/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs
@@ -181,9 +181,9 @@ fn store_provider(root: &Path) -> Arc<dyn SessionStoreProvider> {
LazyLock::new(Mutex::default);
let mut stores = STORES.lock().unwrap_or_else(|e| e.into_inner());
Arc::clone(
- stores
- .entry(root.to_path_buf())
- .or_insert_with(crate::storage::sessions::splice_fixture_tests::memory_session_provider),
+ stores.entry(root.to_path_buf()).or_insert_with(
+ crate::storage::sessions::splice_fixture_tests::memory_session_provider,
+ ),
)
}
diff --git a/crates/openhuman-core/src/profiles/fence_tests.rs b/crates/openhuman-core/src/profiles/fence_tests.rs
index 6f4c5a227c..9409205b7c 100644
--- a/crates/openhuman-core/src/profiles/fence_tests.rs
+++ b/crates/openhuman-core/src/profiles/fence_tests.rs
@@ -1,5 +1,4 @@
#![cfg(feature = "storage-sqlite")]
-#![cfg(feature = "storage-sqlite")]
use super::*;
use crate::core::runtime::{CoreContext, DomainSet, SaasConfig};
diff --git a/crates/openhuman-core/src/storage/lease_model_tests.rs b/crates/openhuman-core/src/storage/lease_model_tests.rs
index b45a366704..bf60158b78 100644
--- a/crates/openhuman-core/src/storage/lease_model_tests.rs
+++ b/crates/openhuman-core/src/storage/lease_model_tests.rs
@@ -1,5 +1,3 @@
-#![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:
@@ -10,6 +8,8 @@
//! 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;
diff --git a/crates/openhuman-core/src/threads/transcript_host_tests.rs b/crates/openhuman-core/src/threads/transcript_host_tests.rs
index be6e81983c..1ed3b76edd 100644
--- a/crates/openhuman-core/src/threads/transcript_host_tests.rs
+++ b/crates/openhuman-core/src/threads/transcript_host_tests.rs
@@ -316,7 +316,9 @@ fn calls_recorded_after_their_results_project_as_settled() {
);
let provider = memory_session_provider();
- let locator = provider.for_agent(crate::storage::sessions::DEFAULT_AGENT).transcripts;
+ let locator = provider
+ .for_agent(crate::storage::sessions::DEFAULT_AGENT)
+ .transcripts;
crate::storage::import::sessions::import_transcript_groups(provider.as_ref(), dir.path())
.unwrap();
let items = project_thread_in(locator.as_ref(), thread, None, None)