From f7a1903bfcaea5d8ee240b1583dc028ce2a0c77d Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sat, 30 May 2026 17:18:49 +0100 Subject: [PATCH] fix(discord): avoid private test session intersection --- .../discord/src/voice/realtime.wake-name-followup.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/discord/src/voice/realtime.wake-name-followup.test.ts b/extensions/discord/src/voice/realtime.wake-name-followup.test.ts index 8970b65d8e8..39e0f6b3623 100644 --- a/extensions/discord/src/voice/realtime.wake-name-followup.test.ts +++ b/extensions/discord/src/voice/realtime.wake-name-followup.test.ts @@ -1,7 +1,7 @@ import { afterEach, describe, expect, it, vi } from "vitest"; import { DiscordRealtimeVoiceSession } from "./realtime.js"; -type SessionWithPrivates = DiscordRealtimeVoiceSession & { +type WakeNameFollowupTestSession = { armWakeNameFollowup: () => void; consumePendingWakeNameFollowup: () => unknown; pendingWakeNameFollowup?: unknown; @@ -11,7 +11,7 @@ type SessionWithPrivates = DiscordRealtimeVoiceSession & { }; }; -function createSession(): SessionWithPrivates { +function createSession(): WakeNameFollowupTestSession { return new DiscordRealtimeVoiceSession({ cfg: {}, discordConfig: { voice: { realtime: {} } }, @@ -21,7 +21,7 @@ function createSession(): SessionWithPrivates { }, mode: "agent-proxy", runAgentTurn: vi.fn(), - } as never) as SessionWithPrivates; + } as never) as unknown as WakeNameFollowupTestSession; } describe("DiscordRealtimeVoiceSession wake-name follow-up cache", () => {