Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
test(server): wait for a contended data directory as long as Windows PowerShell takes to start
milind-sonicbbec174a46f
diff --git a/server/index.test.ts b/server/index.test.tsindex 040e3ba83e..da37c0eb9e 100644--- a/server/index.test.ts+++ b/server/index.test.ts@@ -1707,7 +1707,9 @@ describe("harness HTTP API", () => {try {const result = await new Promise<{ code: number | null; signal: NodeJS.Signals | null }>((resolve, reject) => {- const timer = setTimeout(() => reject(new Error("competing server did not exit")), 5_000);+ // On Windows without wmic the lease reads the other server's start time through Windows PowerShell, whose first+ // start on a CI runner takes several seconds.+ const timer = setTimeout(() => reject(new Error("competing server did not exit")), process.platform === "win32" ? 30_000 : 5_000);timer.unref?.();contender.once("close", (code, signal) => {clearTimeout(timer);@@ -1721,7 +1723,7 @@ describe("harness HTTP API", () => {} finally {await waitForExit(contender, { signal: "SIGTERM", graceMs: 1_000 });}- });+ }, 45_000);it("serves packaged UI assets and preserves API 404s", async () => {const root = await fetch(`${BASE}/`);