Skip to content

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

test(runtime): cover legacy max_agents_open key

Steven Enamakelf445e4d07671
diff --git a/crates/openhuman-core/src/core/runtime/saas_tests.rs b/crates/openhuman-core/src/core/runtime/saas_tests.rs
index 9f1120b8c4..1370f7e236 100644
--- a/crates/openhuman-core/src/core/runtime/saas_tests.rs
+++ b/crates/openhuman-core/src/core/runtime/saas_tests.rs
@@ -143,3 +143,11 @@ fn boot_refuses_a_registry_with_workspace_definitions() {
.to_string();
assert!(err.contains("built-ins only"), "{err}");
}
+
+#[test]
+fn the_pre_rename_max_agents_open_key_still_sets_the_limit() {
+ let tmp = tempfile::tempdir().unwrap();
+ let path = tmp.path().join("operator.toml");
+ std::fs::write(&path, "root = \"/srv/openhuman\"\nmax_agents_open = 7\n").unwrap();
+ assert_eq!(SaasConfig::load(&path).unwrap().max_profiles_open, 7);
+}