From 3fffce2a4a7d800ffa3ce9330cda24edaab0fd70 Mon Sep 17 00:00:00 2001 From: Hampus Date: Sat, 12 Sep 2026 15:49:47 +0200 Subject: [PATCH] fix(voice): correct the room_finished test harness types (#2723) --- .../api/infrastructure/tests/LiveKitWebhookService.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fluxer_api/src/api/infrastructure/tests/LiveKitWebhookService.test.ts b/fluxer_api/src/api/infrastructure/tests/LiveKitWebhookService.test.ts index a0374f80c..8d3dac381 100644 --- a/fluxer_api/src/api/infrastructure/tests/LiveKitWebhookService.test.ts +++ b/fluxer_api/src/api/infrastructure/tests/LiveKitWebhookService.test.ts @@ -2,9 +2,9 @@ import type {WebhookEvent} from 'livekit-server-sdk'; import {describe, expect, it, vi} from 'vitest'; -import type {ChannelID, GuildID} from '../../BrandedTypes'; import {createChannelID, createGuildID} from '../../BrandedTypes'; import {VoiceTopology} from '../../voice/VoiceTopology'; +import type {IVoiceRepository} from '../../voice/IVoiceRepository'; import type {IGatewayService} from '../IGatewayService'; import type {ILiveKitService} from '../ILiveKitService'; import type {IVoiceRoomStore} from '../IVoiceRoomStore'; @@ -29,7 +29,7 @@ function harness(pinnedServerId: string | null) { } as unknown as IVoiceRoomStore; const gatewayService = {disconnectAllVoiceUsersInChannel} as unknown as IGatewayService; const liveKitService = {} as unknown as ILiveKitService; - const service = new LiveKitWebhookService(voiceRoomStore, gatewayService, liveKitService, new VoiceTopology()); + const service = new LiveKitWebhookService(voiceRoomStore, gatewayService, liveKitService, new VoiceTopology({} as unknown as IVoiceRepository, null)); return {service, deleteRoomServer, disconnectAllVoiceUsersInChannel}; }