fixup test mock
This commit is contained in:
@@ -70,6 +70,12 @@ test("It joins the correct Session", async () => {
|
|||||||
roomId: "roomId",
|
roomId: "roomId",
|
||||||
client: {
|
client: {
|
||||||
getDomain: vi.fn().mockReturnValue("example.org"),
|
getDomain: vi.fn().mockReturnValue("example.org"),
|
||||||
|
getOpenIdToken: vi.fn().mockResolvedValue({
|
||||||
|
access_token: "ACCCESS_TOKEN",
|
||||||
|
token_type: "Bearer",
|
||||||
|
matrix_server_name: "localhost",
|
||||||
|
expires_in: 10000,
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
memberships: [],
|
memberships: [],
|
||||||
@@ -195,6 +201,12 @@ test("It should not fail with configuration error if homeserver config has livek
|
|||||||
roomId: "roomId",
|
roomId: "roomId",
|
||||||
client: {
|
client: {
|
||||||
getDomain: vi.fn().mockReturnValue("example.org"),
|
getDomain: vi.fn().mockReturnValue("example.org"),
|
||||||
|
getOpenIdToken: vi.fn().mockResolvedValue({
|
||||||
|
access_token: "ACCCESS_TOKEN",
|
||||||
|
token_type: "Bearer",
|
||||||
|
matrix_server_name: "localhost",
|
||||||
|
expires_in: 10000,
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
memberships: [],
|
memberships: [],
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ async function preWarmSFU(rtcSession: MatrixRTCSession, livekitAlias: string) {
|
|||||||
// because other joiners might not be able to join the call if the room does not exist yet.
|
// because other joiners might not be able to join the call if the room does not exist yet.
|
||||||
const fociToWarmup = await getMyPreferredLivekitFoci(
|
const fociToWarmup = await getMyPreferredLivekitFoci(
|
||||||
client.getDomain(),
|
client.getDomain(),
|
||||||
livekitAlias
|
livekitAlias,
|
||||||
);
|
);
|
||||||
|
|
||||||
// Request a token in advance to warm up the livekit room.
|
// Request a token in advance to warm up the livekit room.
|
||||||
|
|||||||
Reference in New Issue
Block a user