Skip to content

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

test(storage): add debug output to legacy import test

Steven Enamakelf4355333a8fe
diff --git a/crates/openhuman-core/src/storage/layout/legacy_tests.rs b/crates/openhuman-core/src/storage/layout/legacy_tests.rs
index 11ebdeeabd..7306127675 100644
--- a/crates/openhuman-core/src/storage/layout/legacy_tests.rs
+++ b/crates/openhuman-core/src/storage/layout/legacy_tests.rs
@@ -30,7 +30,7 @@ async fn importing_twice_changes_nothing() {
import(&fx.target, &fx.config).await.unwrap();
migrate(&fx.target).await.unwrap();
let first = super::super::db::table_counts(&v1_db(&fx.target)).unwrap();
- import(&fx.target, &fx.config).await.unwrap();
+ if let Err(e) = import(&fx.target, &fx.config).await { eprintln!("DBG2 {e:#}"); panic!("x"); }
migrate(&fx.target).await.unwrap();
assert_eq!(
super::super::db::table_counts(&v1_db(&fx.target)).unwrap(),