From 29f825bea5c2ac4b840fee6bc6a332f7e1256eb2 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 27 Apr 2026 07:43:42 +0100 Subject: [PATCH] test: isolate google meet node host clear audio --- extensions/google-meet/node-host.test.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/extensions/google-meet/node-host.test.ts b/extensions/google-meet/node-host.test.ts index cf0c409b81a..01cd731c6ca 100644 --- a/extensions/google-meet/node-host.test.ts +++ b/extensions/google-meet/node-host.test.ts @@ -51,7 +51,7 @@ describe("google-meet node host bridge sessions", () => { await handleGoogleMeetNodeHostCommand( JSON.stringify({ action: "start", - url: "https://meet.google.com/abc-defg-hij", + url: "https://meet.google.com/xyz-abcd-uvw", mode: "realtime", launch: false, audioInputCommand: ["mock-rec"], @@ -77,6 +77,7 @@ describe("google-meet node host bridge sessions", () => { expect(firstOutput?.kill).toHaveBeenCalledWith("SIGTERM"); firstOutput?.emit("error", new Error("stale output failed after clear")); + firstOutput?.emit("exit", 0, "SIGTERM"); const status = JSON.parse( await handleGoogleMeetNodeHostCommand( @@ -104,6 +105,13 @@ describe("google-meet node host bridge sessions", () => { expect(children[2]?.stdin?.write).toHaveBeenCalledWith(audio); expect(firstOutput?.stdin?.write).not.toHaveBeenCalled(); + + await handleGoogleMeetNodeHostCommand( + JSON.stringify({ + action: "stop", + bridgeId: start.bridgeId, + }), + ); } finally { Object.defineProperty(process, "platform", { configurable: true, value: originalPlatform }); }