Skip to content

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

chore(storage): drop stale legacy profile fixture and reformat boot test

Steven Enamakelccdc08ddc2bf
diff --git a/crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/storage.db.previous b/crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/storage.db.previous.old
similarity index 100%
rename from crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/storage.db.previous
rename to crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/storage.db.previous.old
diff --git a/tests/storage_legacy_profile_boot_e2e.rs b/tests/storage_legacy_profile_boot_e2e.rs
index e7ac091128..1de94a68bd 100644
--- a/tests/storage_legacy_profile_boot_e2e.rs
+++ b/tests/storage_legacy_profile_boot_e2e.rs
@@ -109,7 +109,10 @@ fn desktop_boot_reads_a_preserved_existing_v1_profile_database() {
let home = tempfile::tempdir().unwrap();
let (profile, source) = seed_existing_profile(home.path());
let source_bytes = std::fs::read(&source).unwrap();
- assert_eq!(source_bytes, FIXTURE, "profile seed must match the checked-in historical database");
+ assert_eq!(
+ source_bytes, FIXTURE,
+ "profile seed must match the checked-in historical database"
+ );
let (_server, base) = start(home.path());
let credential = rpc_with_params(
@@ -166,9 +169,10 @@ fn desktop_boot_reads_a_preserved_existing_v1_profile_database() {
let manifest = openhuman_core::storage::layout::archive::restore(&archive, restored.path())
.expect("migration archive should verify and restore");
assert!(
- manifest.files.iter().any(|file| {
- file.path == "workspace/storage/storage.db" && file.size > 0
- }),
+ manifest
+ .files
+ .iter()
+ .any(|file| { file.path == "workspace/storage/storage.db" && file.size > 0 }),
"archive manifest must record the historical storage.db: {:?}",
manifest
.files
@@ -177,11 +181,14 @@ fn desktop_boot_reads_a_preserved_existing_v1_profile_database() {
.collect::<Vec<_>>()
);
let archived_db = restored.path().join("workspace/storage/storage.db");
- assert!(archived_db.is_file(), "archive must contain the migrated historical database");
+ assert!(
+ archived_db.is_file(),
+ "archive must contain the migrated historical database"
+ );
let archive_url = format!("sqlite:{}", archived_db.display());
- openhuman_core::storage::block_on(async move {
- openhuman_core::storage::open(&archive_url).await
- })
+ openhuman_core::storage::block_on(
+ async move { openhuman_core::storage::open(&archive_url).await },
+ )
.expect("archived historical database must remain readable");
// The profile's V2 workspace resolves its default backend to the exact