Skip to content

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

test(storage): report layout migration errors in test helper

Steven Enamakel7c7a0b56dcdb
diff --git a/crates/openhuman-core/src/storage/layout/run_tests.rs b/crates/openhuman-core/src/storage/layout/run_tests.rs
index 080ea6d1b6..032b4995ae 100644
--- a/crates/openhuman-core/src/storage/layout/run_tests.rs
+++ b/crates/openhuman-core/src/storage/layout/run_tests.rs
@@ -11,7 +11,10 @@ async fn go(fx: &Fixture, options: &Options) -> Result<Outcome, LayoutError> {
}
async fn migrated(fx: &Fixture) -> Box<Report> {
- match go(fx, &opts()).await.unwrap() {
+ match go(fx, &opts())
+ .await
+ .unwrap_or_else(|error| panic!("layout migration failed: {error:#}"))
+ {
Outcome::Migrated(report) => report,
other => panic!("expected a migration, got {other:?}"),
}