Skip to content

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

test(storage): surface import errors in legacy import test

Steven Enamakel543d497343cb
diff --git a/crates/openhuman-core/src/storage/layout/legacy_tests.rs b/crates/openhuman-core/src/storage/layout/legacy_tests.rs
index acda5998d6..36467ab966 100644
--- a/crates/openhuman-core/src/storage/layout/legacy_tests.rs
+++ b/crates/openhuman-core/src/storage/layout/legacy_tests.rs
@@ -4,7 +4,10 @@ use crate::storage::layout::test_fixtures::{fixture_docs, v1_profile};
#[tokio::test(flavor = "multi_thread")]
async fn the_import_brings_legacy_files_into_the_v1_database() {
let fx = v1_profile();
- let summary = import(&fx.target, &fx.config).await.unwrap();
+ let summary = import(&fx.target, &fx.config).await.unwrap_or_else(|error| {
+ eprintln!("profile legacy import failed: {error:#}");
+ panic!("profile legacy import did not complete");
+ });
assert_eq!(summary.memory_state, vec!["jobs".to_owned()]);
assert!(
summary.domains >= 3,