Skip to content

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

test(rpc_harness): borrow config string when writing test config

Steven Enamakel87d24de39ddf
diff --git a/tests/support/rpc_harness.rs b/tests/support/rpc_harness.rs
index a151d3639f..efeec7426d 100644
--- a/tests/support/rpc_harness.rs
+++ b/tests/support/rpc_harness.rs
@@ -135,6 +135,6 @@ embedding_strict = false
} else {
cfg.to_string()
};
- std::fs::write(openhuman_dir.join("config.toml"), cfg).expect("write config.toml");
+ std::fs::write(openhuman_dir.join("config.toml"), &cfg).expect("write config.toml");
let _: openhuman_core::config::Config = toml::from_str(&cfg).expect("test config must match schema");
}