The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(storage): clone migration inputs before async move
Steven Enamakelb96ff90ed600
diff --git a/crates/openhuman-core/src/storage/import/mod_tests.rs b/crates/openhuman-core/src/storage/import/mod_tests.rsindex 9b4fd44d44..ad303902d7 100644--- a/crates/openhuman-core/src/storage/import/mod_tests.rs+++ b/crates/openhuman-core/src/storage/import/mod_tests.rs@@ -283,10 +283,12 @@ fn historical_profile_fixture_boots_into_typed_owner_records_without_resurrectio// must copy the already-existing v1 profile database into the profile's// actual v2 `storage.db`; importing the fixture into an unrelated test// destination would not prove what a subsequent boot opens.- let migration = storage::block_on_anyhow(async {+ let migration_target = target.clone();+ let migration_config = config.clone();+ let migration = storage::block_on_anyhow(async move {crate::storage::layout::migrate(- &target,- &config,+ &migration_target,+ &migration_config,&crate::storage::layout::Options {allow_live: true,..Default::default()