Skip to content

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

test: tidy imports and formatting in test modules

Steven Enamakel55c3385c97b6
diff --git a/crates/openhuman-core/src/channels/runtime/startup/delivery_import_tests.rs b/crates/openhuman-core/src/channels/runtime/startup/delivery_import_tests.rs
index a77f58fdf2..19a96a2213 100644
--- a/crates/openhuman-core/src/channels/runtime/startup/delivery_import_tests.rs
+++ b/crates/openhuman-core/src/channels/runtime/startup/delivery_import_tests.rs
@@ -1,7 +1,7 @@
use super::*;
+use crate::storage::{Scope, StorageBackend};
use std::sync::Arc;
use tinychannels_bus::{ChannelOutboundIntent, DeliveryDurability, OutboundPayload};
-use crate::storage::{Scope, StorageBackend};
fn entry(id: &str, at: u64) -> DeliveryQueueEntry {
DeliveryQueueEntry::new(
diff --git a/crates/openhuman-core/src/config/schema/load/source/mod_tests.rs b/crates/openhuman-core/src/config/schema/load/source/mod_tests.rs
index 738b59ad2b..1627d5adba 100644
--- a/crates/openhuman-core/src/config/schema/load/source/mod_tests.rs
+++ b/crates/openhuman-core/src/config/schema/load/source/mod_tests.rs
@@ -145,7 +145,12 @@ async fn a_document_does_not_decrypt_under_another_scope_or_master_key() {
alice.write("default_model = \"m\"\n").await.unwrap();
// Another master key fails closed.
- let wrong_key = document_source_keyed(storage.as_ref(), "alice", &tmp.path().join("a.toml"), keys(2));
+ let wrong_key = document_source_keyed(
+ storage.as_ref(),
+ "alice",
+ &tmp.path().join("a.toml"),
+ keys(2),
+ );
assert!(wrong_key.read().await.is_err());
// Another scope's data key cannot open alice's ciphertext even when the
diff --git a/crates/openhuman-core/src/storage/import/sessions_tests.rs b/crates/openhuman-core/src/storage/import/sessions_tests.rs
index e3c4d22a06..e60d40c0ca 100644
--- a/crates/openhuman-core/src/storage/import/sessions_tests.rs
+++ b/crates/openhuman-core/src/storage/import/sessions_tests.rs
@@ -2,7 +2,7 @@
use super::*;
use crate::storage::rusqlite;
-use crate::storage::test_support::{SqliteBackend, sqlite_backend};
+use crate::storage::test_support::{sqlite_backend, SqliteBackend};
use crate::util::classic_transcript_fixture::write_classic;
use sha2::Digest as _;
use std::collections::BTreeMap;