You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
Fix tests
This commit is contained in:
@@ -246,7 +246,7 @@ describe("OlmDevice", function() {
|
|||||||
|
|
||||||
// After a single tick through the first task, it should have
|
// After a single tick through the first task, it should have
|
||||||
// claimed ownership of all devices to avoid deadlocking others.
|
// claimed ownership of all devices to avoid deadlocking others.
|
||||||
expect(Object.keys(aliceOlmDevice._sessionsInProgress).length).toBe(2);
|
expect(Object.keys(aliceOlmDevice.sessionsInProgress).length).toBe(2);
|
||||||
|
|
||||||
const task2 = alwaysSucceed(olmlib.ensureOlmSessionsForDevices(
|
const task2 = alwaysSucceed(olmlib.ensureOlmSessionsForDevices(
|
||||||
aliceOlmDevice, baseApis, devicesByUserBA,
|
aliceOlmDevice, baseApis, devicesByUserBA,
|
||||||
@@ -254,7 +254,7 @@ describe("OlmDevice", function() {
|
|||||||
|
|
||||||
// The second task should not have changed the ownership count, as
|
// The second task should not have changed the ownership count, as
|
||||||
// it's waiting on the first task.
|
// it's waiting on the first task.
|
||||||
expect(Object.keys(aliceOlmDevice._sessionsInProgress).length).toBe(2);
|
expect(Object.keys(aliceOlmDevice.sessionsInProgress).length).toBe(2);
|
||||||
|
|
||||||
// Track the tasks, but don't await them yet.
|
// Track the tasks, but don't await them yet.
|
||||||
const promises = Promise.all([
|
const promises = Promise.all([
|
||||||
|
|||||||
@@ -288,7 +288,7 @@ describe("MegolmBackup", function() {
|
|||||||
ed25519: "SENDER_ED25519",
|
ed25519: "SENDER_ED25519",
|
||||||
},
|
},
|
||||||
room_id: ROOM_ID,
|
room_id: ROOM_ID,
|
||||||
session: ibGroupSession.pickle(olmDevice._pickleKey),
|
session: ibGroupSession.pickle(olmDevice.pickleKey),
|
||||||
},
|
},
|
||||||
txn);
|
txn);
|
||||||
});
|
});
|
||||||
@@ -369,7 +369,7 @@ describe("MegolmBackup", function() {
|
|||||||
ed25519: "SENDER_ED25519",
|
ed25519: "SENDER_ED25519",
|
||||||
},
|
},
|
||||||
room_id: ROOM_ID,
|
room_id: ROOM_ID,
|
||||||
session: ibGroupSession.pickle(olmDevice._pickleKey),
|
session: ibGroupSession.pickle(olmDevice.pickleKey),
|
||||||
},
|
},
|
||||||
txn);
|
txn);
|
||||||
});
|
});
|
||||||
@@ -546,7 +546,7 @@ describe("MegolmBackup", function() {
|
|||||||
ed25519: "SENDER_ED25519",
|
ed25519: "SENDER_ED25519",
|
||||||
},
|
},
|
||||||
room_id: ROOM_ID,
|
room_id: ROOM_ID,
|
||||||
session: ibGroupSession.pickle(olmDevice._pickleKey),
|
session: ibGroupSession.pickle(olmDevice.pickleKey),
|
||||||
},
|
},
|
||||||
txn);
|
txn);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user