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(embedded_server_shutdown): run shutdown e2e on a large-stack thread
Steven Enamakel3f514ccc77bb
diff --git a/tests/embedded_server_shutdown_e2e.rs b/tests/embedded_server_shutdown_e2e.rsindex d9b601230b..62fa2f6c22 100644--- a/tests/embedded_server_shutdown_e2e.rs+++ b/tests/embedded_server_shutdown_e2e.rs@@ -32,8 +32,27 @@ async fn wait_until_port(port: u16, accepting: bool) {}}-#[tokio::test(flavor = "multi_thread", worker_threads = 2)]-async fn shutdown_token_stops_axum_listener_within_timeout() {+#[test]+fn shutdown_token_stops_axum_listener_within_timeout() {+ // The core's boot is stack-hungry; give the runtime's threads room, as+ // `crates/openhuman-rpc/tests/host_desktop.rs` does.+ std::thread::Builder::new()+ .stack_size(64 * 1024 * 1024)+ .spawn(|| {+ tokio::runtime::Builder::new_multi_thread()+ .worker_threads(2)+ .enable_all()+ .thread_stack_size(16 * 1024 * 1024)+ .build()+ .expect("tokio runtime")+ .block_on(shutdown_token_stops_listener())+ })+ .expect("test thread")+ .join()+ .expect("test thread should not panic");+}++async fn shutdown_token_stops_listener() {openhuman_core::cron::scheduler_gate::set_signed_out(false);let workspace = tempfile::tempdir().expect("workspace tempdir");