mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-30 19:39:22 +00:00
fix bad assert for reconnect
This commit is contained in:
@@ -94,11 +94,7 @@ test("When creator left, avoid reconnect to the same SFU", async ({
|
|||||||
// https://github.com/element-hq/element-call/issues/3344
|
// https://github.com/element-hq/element-call/issues/3344
|
||||||
// The app used to request a new jwt token then to reconnect to the SFU
|
// The app used to request a new jwt token then to reconnect to the SFU
|
||||||
expect(wsConnectionCount).toBe(1);
|
expect(wsConnectionCount).toBe(1);
|
||||||
await expect
|
// Wait a bit to be sure that if there was a reconnect, it would have happened by now
|
||||||
.poll(() => wsConnectionCount, {
|
await guestCPage.waitForTimeout(6000);
|
||||||
message:
|
expect(wsConnectionCount).toBe(1);
|
||||||
"Expected only 1 WebSocket connection (no reconnection after creator left)",
|
|
||||||
timeout: 5000, // Check for 5 seconds that it stays at 1
|
|
||||||
})
|
|
||||||
.toBe(1);
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user