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(config): simplify transcript preservation assertion
Steven Enamakel50bf31eae122
diff --git a/crates/openhuman-core/src/config/migrations/mod_tests.rs b/crates/openhuman-core/src/config/migrations/mod_tests.rsindex befdc61520..284dd8d0c4 100644--- a/crates/openhuman-core/src/config/migrations/mod_tests.rs+++ b/crates/openhuman-core/src/config/migrations/mod_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::util::classic_transcript_fixture::{read_classic_rows, write_classic};+use crate::util::classic_transcript_fixture::write_classic;use std::fs;use std::path::Path;use tempfile::TempDir;@@ -97,6 +97,7 @@ async fn run_pending_skips_when_version_current() {let tmp = TempDir::new().unwrap();let path = seed_tainted_transcript(&tmp.path().join("workspace"));let before = fs::read(&path).unwrap();+ let before = fs::read(&path).unwrap();let mut config = config_in(&tmp);config.schema_version = CURRENT_SCHEMA_VERSION;@@ -117,11 +118,10 @@ async fn run_pending_runs_phase_out_when_version_zero() {run_pending(&mut config).await;assert_eq!(config.schema_version, CURRENT_SCHEMA_VERSION);- let rows = read_classic_rows(&path);- let first = rows[0]["content"].as_str().unwrap();- assert!(- first.contains("### PROFILE.md"),- "migration must preserve the source transcript; import strips the retired section"+ assert_eq!(+ fs::read(&path).unwrap(),+ before,+ "migration must preserve source transcripts; import strips the retired section");let on_disk = std::fs::read_to_string(&config.config_path).unwrap();