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(runtime): cover tinyflows flag narrowing the cron service
Steven Enamakel53cca2091f96
diff --git a/crates/openhuman-core/src/core/runtime/components_tests.rs b/crates/openhuman-core/src/core/runtime/components_tests.rsindex b484306ec7..6127afb362 100644--- a/crates/openhuman-core/src/core/runtime/components_tests.rs+++ b/crates/openhuman-core/src/core/runtime/components_tests.rs@@ -155,3 +155,18 @@ fn require_config_refuses_with_the_typed_error_only_when_the_flag_is_off() {assert!(err.contains("COMPONENT_DISABLED:computer"), "{err}");assert!(require_config(&config, "search").is_ok());}++#[test]+fn the_tinyflows_flag_stops_the_cron_service_and_nothing_else() {+ let desktop = ServiceSet::desktop();+ assert!(desktop.cron, "the desktop preset runs the scheduler");+ let narrowed = off("tinyflows").narrow_services(desktop);+ assert!(!narrowed.cron);+ assert_eq!(narrowed.channels, desktop.channels);+ // `flows` is a different switch: it leaves the scheduler running.+ assert!(off("flows").narrow_services(desktop).cron);+ assert_eq!(+ off("tinyflows").require("tinyflows").unwrap_err().message,+ "COMPONENT_DISABLED:tinyflows"+ );+}