Skip to content

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

test(scripts): normalize root path in hosted json-rpc enumeration test

Steven Enamakel0bd3ca6c2f9e
diff --git a/scripts/__tests__/hosted-json-rpc-enumeration.test.mjs b/scripts/__tests__/hosted-json-rpc-enumeration.test.mjs
index 9358254c29..d845a8048a 100644
--- a/scripts/__tests__/hosted-json-rpc-enumeration.test.mjs
+++ b/scripts/__tests__/hosted-json-rpc-enumeration.test.mjs
@@ -22,7 +22,9 @@ function runCoreStep(mode) {
/- name: Test core crate \(openhuman\)[\s\S]*? run: \|\n([\s\S]*?)(?=\n rust-core-tests-windows:)/,
);
assert.ok(block, "hosted core step exists");
- const command = block[1].replace(/^ /gm, "");
+ const command = block[1]
+ .replace(/^ /gm, "")
+ .replaceAll("/root/", `${root}/`);
for (const directory of [
"bin",
"scripts/ci",