Skip to content

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

test(config): move transcript snapshot into the test that uses it

Steven Enamakel52cda64d3eab
diff --git a/crates/openhuman-core/src/config/migrations/mod_tests.rs b/crates/openhuman-core/src/config/migrations/mod_tests.rs
index 284dd8d0c4..7f14c49d3b 100644
--- a/crates/openhuman-core/src/config/migrations/mod_tests.rs
+++ b/crates/openhuman-core/src/config/migrations/mod_tests.rs
@@ -97,7 +97,6 @@ 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;
@@ -112,6 +111,7 @@ async fn run_pending_skips_when_version_current() {
async fn run_pending_runs_phase_out_when_version_zero() {
let tmp = TempDir::new().unwrap();
let path = seed_tainted_transcript(&tmp.path().join("workspace"));
+ let before = fs::read(&path).unwrap();
let mut config = config_in(&tmp);
assert_eq!(config.schema_version, 0);