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
chore: files changed crates/openhuman-rpc/src/server/shims_tests.rs
Steven Enamakel90ad9296bfc1
diff --git a/crates/openhuman-rpc/src/server/shims_tests.rs b/crates/openhuman-rpc/src/server/shims_tests.rsindex af6b8d361a..9f777ec8c6 100644--- a/crates/openhuman-rpc/src/server/shims_tests.rs+++ b/crates/openhuman-rpc/src/server/shims_tests.rs@@ -32,31 +32,40 @@ fn core_listener_settings_use_valid_environment_values_and_safe_defaults() {assert_eq!(super::core_host(), "127.0.0.1");}-#[tokio::test]-async fn server_shim_refuses_public_bind_without_operator_token() {- let workspace = tempfile::tempdir().expect("workspace tempdir");- let _env = EnvVarGuard::set_many(vec![- (- "OPENHUMAN_WORKSPACE",- workspace.path().as_os_str().to_os_string(),- ),- ("OPENHUMAN_CORE_TOKEN", OsString::from("")),- ]);- let services = openhuman_core::core::runtime::ServiceSet::headless_api();-- let error = super::run_server_with_services(- Some("0.0.0.0"),- Some(0),- services,- true,- None,- None,- None,- )- .await- .expect_err("public bind must require an operator-supplied token");+#[test]+fn server_shim_refuses_public_bind_without_operator_token() {+ tokio::runtime::Builder::new_multi_thread()+ .worker_stack_size(8 * 1024 * 1024)+ .enable_all()+ .build()+ .expect("tokio runtime")+ .block_on(async {+ let workspace = tempfile::tempdir().expect("workspace tempdir");+ let _env = EnvVarGuard::set_many(vec![+ (+ "OPENHUMAN_WORKSPACE",+ workspace.path().as_os_str().to_os_string(),+ ),+ ("OPENHUMAN_CORE_TOKEN", OsString::from("")),+ ]);+ let services = openhuman_core::core::runtime::ServiceSet::headless_api();++ let error = super::run_server_with_services(+ Some("0.0.0.0"),+ Some(0),+ services,+ true,+ None,+ None,+ None,+ )+ .await+ .expect_err("public bind must require an operator-supplied token");- assert!(error.to_string().contains("refusing to bind on non-loopback"));+ assert!(error+ .to_string()+ .contains("refusing to bind on non-loopback"));+ });}async fn wait_until_port_accepts(port: u16) {