Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Live calls: fix the test of a refused caller during a running call
milind-soni8204205eb0e0
diff --git a/server/live-call-controller.test.ts b/server/live-call-controller.test.tsindex f95981d48e..6c20aad6b9 100644--- a/server/live-call-controller.test.ts+++ b/server/live-call-controller.test.ts@@ -177,8 +177,8 @@ describe("LiveCallController lifecycle", () => {});it("tells a refused caller nothing about a call already running", async () => {- const refusals: Array<string | null> = [null, REFUSED];- const t = azure({ azureRefusal: () => refusals.shift() ?? REFUSED });+ let asked = 0;+ const t = azure({ azureRefusal: () => (asked++ === 0 ? null : REFUSED) });await t.start();const second = t.controller.start({ auth: member, ...BOT, client: "web", sdp: "a" });await expect(second).rejects.toMatchObject({ status: 403, message: REFUSED });