diff --git a/src/state/CallViewModel/localMember/LocalTransport.test.ts b/src/state/CallViewModel/localMember/LocalTransport.test.ts index 310fb145..93477fea 100644 --- a/src/state/CallViewModel/localMember/LocalTransport.test.ts +++ b/src/state/CallViewModel/localMember/LocalTransport.test.ts @@ -132,10 +132,8 @@ describe("LocalTransport", () => { livekit: { livekit_service_url: "https://lk.example.org" }, }); const refused = new SFUTokenRefusedError("This voice channel is full."); - vi.spyOn(openIDSFU, "getSFUConfigWithOpenID").mockImplementation( - async () => { - throw refused; - }, + vi.spyOn(openIDSFU, "getSFUConfigWithOpenID").mockImplementation(() => + Promise.reject(refused), ); const errors: Error[] = []; const { active$ } = createLocalTransport$({