Skip to content

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

chore: files changed crates/openhuman-core/src/memory/import_tests.rs

Steven Enamakelefaf0ed83191
diff --git a/crates/openhuman-core/src/memory/import_tests.rs b/crates/openhuman-core/src/memory/import_tests.rs
index 61f5855b6b..fd1681be8d 100644
--- a/crates/openhuman-core/src/memory/import_tests.rs
+++ b/crates/openhuman-core/src/memory/import_tests.rs
@@ -128,7 +128,7 @@ async fn a_paused_scheduler_leaves_an_interrupted_import_for_later() {
#[tokio::test]
async fn a_live_import_blocks_migration_and_does_not_make_a_stale_migration_look_live() {
- use crate::memory::layout_migration::{self, state, test_host::FakeHost, Phase, Trigger};
+ use crate::memory::layout_migration::{self, Phase, Trigger, state, test_host::FakeHost};
let tmp = tempfile::tempdir().unwrap();
let config = config_in(&tmp);
@@ -198,12 +198,14 @@ async fn a_credit_paused_import_waits_for_billing_and_records_a_resume_failure()
);
let stopped = read_file(&config.workspace_dir);
assert_eq!(stopped.state.phase, ImportPhase::Error);
- assert!(stopped
- .state
- .error
- .as_deref()
- .unwrap()
- .contains("could not resume"));
+ assert!(
+ stopped
+ .state
+ .error
+ .as_deref()
+ .unwrap()
+ .contains("could not resume")
+ );
assert!(!stopped.paused_for_credits);
assert!(!is_running(&config.workspace_dir));
}
@@ -600,7 +602,10 @@ async fn peer_slot_contention_preserves_interrupted_import_for_later_resume() {
assert_eq!(done.failed, 0);
let final_file = store.load();
assert_eq!(final_file.state.phase, ImportPhase::Done);
- assert_eq!(final_file.checkpoint.documents.as_deref(), Some("resume-after-peer-slot"));
+ assert_eq!(
+ final_file.checkpoint.documents.as_deref(),
+ Some("resume-after-peer-slot")
+ );
assert_reference_contains(&engine, "legacy body resumed after peer slot").await;
}
}