Skip to content

Commit 76db42b

Browse files
committed
test(discord): restore voice account fixtures
1 parent 4d8c591 commit 76db42b

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎extensions/discord/src/voice/ingress.test.ts‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import { describe, expect, it, vi } from "vitest";
22

3-
type MockIngressInput = { message?: string; sessionKey?: string; runId?: string };
3+
type MockIngressInput = {
4+
accountId?: string;
5+
message?: string;
6+
sessionKey?: string;
7+
runId?: string;
8+
};
49

510
const mocks = vi.hoisted(() => ({
611
agentCommandFromIngress: vi.fn(async (_input: MockIngressInput) => ({
@@ -23,6 +28,7 @@ describe("Discord voice ingress execution correlation", () => {
2328
};
2429
const shared = {
2530
entry: entry as never,
31+
accountId: "work",
2632
userId: "user-1",
2733
cfg: {} as never,
2834
discordConfig: {} as never,
@@ -42,6 +48,7 @@ describe("Discord voice ingress execution correlation", () => {
4248
"agent:main:discord:channel:channel-1",
4349
"agent:main:discord:channel:channel-1",
4450
]);
51+
expect(inputs.map((input) => input.accountId)).toEqual(["work", "work"]);
4552
for (const input of inputs) {
4653
expect(input).not.toHaveProperty("runId");
4754
}

‎extensions/discord/src/voice/voice-runtime.e2e.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ defineDiscordVoiceTests(
215215
).speakerContext;
216216

217217
await segmentModule.processDiscordVoiceSegment({
218+
accountId: "default",
218219
entry: {
219220
guildId: "g1",
220221
channelId: "1001",

0 commit comments

Comments
 (0)