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): remove debug logging from legacy tests
Steven Enamakelf67d5717caf4
diff --git a/crates/openhuman-core/src/storage/layout/legacy_tests.rs b/crates/openhuman-core/src/storage/layout/legacy_tests.rsindex 75c5c22de3..acda5998d6 100644--- a/crates/openhuman-core/src/storage/layout/legacy_tests.rs+++ b/crates/openhuman-core/src/storage/layout/legacy_tests.rs@@ -24,14 +24,13 @@ async fn importing_twice_changes_nothing() {let fx = v1_profile();import(&fx.target, &fx.config).await.unwrap();migrate(&fx.target).await.unwrap();- dbg_docs(&v1_db(&fx.target));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);+ assert_eq!(+ super::super::db::table_counts(&v1_db(&fx.target)).unwrap(),+ first+ );}#[tokio::test(flavor = "multi_thread")]@@ -59,15 +58,3 @@ async fn no_workspace_means_nothing_to_import() {migrate(&target).await.unwrap();assert!(!target.workspace().exists());}--fn dbg_docs(p: &std::path::Path) {- let c = crate::storage::rusqlite::Connection::open(p).unwrap();- 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 _ = 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:?}");- let ids: Vec<String> = c.prepare("SELECT id||' '||body FROM docs WHERE coll='tsd.migrations' AND scope LIKE '%module:memory-workspace%' ORDER BY id").unwrap().query_map([], |r| r.get::<_, String>(0)).unwrap().map(|x| x.unwrap()).collect();- eprintln!("DBGIDS {}", ids.join(" || "));-}