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): update legacy test assertions
Steven Enamakel18a56fd38f52
diff --git a/crates/openhuman-core/src/storage/layout/legacy_tests.rs b/crates/openhuman-core/src/storage/layout/legacy_tests.rsindex c0a9e32b9d..0957fa5e72 100644--- a/crates/openhuman-core/src/storage/layout/legacy_tests.rs+++ b/crates/openhuman-core/src/storage/layout/legacy_tests.rs@@ -28,6 +28,7 @@ async fn importing_twice_changes_nothing() {let first = super::super::db::table_counts(&v1_db(&fx.target)).unwrap();import(&fx.target, &fx.config).await.unwrap();migrate(&fx.target).await.unwrap();+ dbg_docs(&v1_db(&fx.target));let second = super::super::db::table_counts(&v1_db(&fx.target)).unwrap();eprintln!("DBG first={first:?} second={second:?}");assert_eq!(second, first);@@ -64,7 +65,7 @@ fn dbg_docs(p: &std::path::Path) {let cols: Vec<String> = c.prepare("PRAGMA table_info(docs)").unwrap().query_map([], |r| r.get::<_, String>(1)).unwrap().map(|x| x.unwrap()).collect();eprintln!("DBGCOLS {cols:?}");let col = if cols.iter().any(|x| x == "collection") { "collection" } else { &cols[0] };- let q = format!("SELECT {col}, count(*) FROM docs GROUP BY 1 ORDER BY 1");+ let _ = col; let q = "SELECT scope||' '||coll, count(*) FROM docs GROUP BY 1 ORDER BY 1".to_string();let rows: Vec<(String, i64)> = c.prepare(&q).unwrap().query_map([], |r| Ok((r.get::<_, String>(0)?, r.get::<_, i64>(1)?))).unwrap().map(|x| x.unwrap()).collect();eprintln!("DBGDOCS {rows:?}");}