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: cover isolated cron module test routing
Steven Enamakel7e4b876bc66d
diff --git a/scripts/__tests__/hosted-json-rpc-enumeration.test.mjs b/scripts/__tests__/hosted-json-rpc-enumeration.test.mjsindex d845a8048a..1a92ae1fce 100644--- a/scripts/__tests__/hosted-json-rpc-enumeration.test.mjs+++ b/scripts/__tests__/hosted-json-rpc-enumeration.test.mjs@@ -57,20 +57,26 @@ if [[ "$*" == *"test -p openhuman --lib"* ]]; thenecho "core tests need separate private XDG cache and data directories" >&2exit 13}- if [[ "$*" == *"inference::tokenjuice::"* || "$*" == *"tinyjuice_detects_and_converts_html"* ]]; then+ if [[ "$*" == *"--test-threads=1"* ]]; then[[ "\${OPENHUMAN_MODULE_PATH:-}" == "$MODULE_FIXTURE_PATH" ]] || {echo "module-backed core tests need the staged module path" >&2exit 15}- echo "ISOLATED-MODULE-TEST:$*"+ if [[ "$*" == *"cron::bus_host::tests::"* || "$*" == *"cron::documents_port::tests::"* ]]; then+ echo "ISOLATED-CRON-MODULE-TEST:$*"+ else+ echo "ISOLATED-MODULE-TEST:$*"+ fiecho "test result: ok. 1 passed; 0 failed; 0 ignored"- elif [[ "$*" == *"--test-threads=1"* ]]; then- [[ "\${OPENHUMAN_MODULE_PATH:-}" == "$MODULE_FIXTURE_PATH" ]] || exit 15else[[ -z "\${OPENHUMAN_MODULE_PATH:-}" ]] || {echo "parallel core unit tests must not load process-global modules" >&2exit 14}+ [[ "$*" == *"--skip cron::bus_host::tests::"* && "$*" == *"--skip cron::documents_port::tests::"* ]] || {+ echo "parallel core unit tests must skip module-backed cron tests" >&2+ exit 16+ }echo CORE-TESTS-WITHOUT-MODULE-PATHfiecho PRIVATE-XDG-CACHE@@ -104,6 +110,11 @@ test("hosted JSON-RPC tests are listed and executed with product features", () =4,result.stdout,);+ assert.equal(+ (result.stdout.match(/ISOLATED-CRON-MODULE-TEST:/g) ?? []).length,+ 13,+ result.stdout,+ );assert.match(result.stdout, /PRIVATE-XDG-CACHE/);assert.match(result.stdout, /EXECUTED-JSON-RPC/);});