Skip to content

Commit

Permalink
Fix comments and new one
Browse files Browse the repository at this point in the history
  • Loading branch information
florianduros committed Apr 21, 2023
1 parent f573511 commit d8a78c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/integ/crypto.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2006,6 +2006,7 @@ describe.each(Object.entries(CRYPTO_BACKENDS))("crypto (%s)", (backend: string,
});

// From https://spec.matrix.org/v1.6/client-server-api/#post_matrixclientv3keysquery
// Using extracted response from matrix.org, it needs to have real keys etc to pass old crypto verification
const queryResponseBody = {
device_keys: {
"@testing_florian1:matrix.org": {
Expand Down Expand Up @@ -2158,7 +2159,7 @@ describe.each(Object.entries(CRYPTO_BACKENDS))("crypto (%s)", (backend: string,
// Old crypto: for `user`: run over the `sleep(5)` in `doQueuedQueries` of `DeviceList`
jest.runAllTimers();
// Old crypto: for `user`: run the `processQueryResponseForUser` in `doQueuedQueries` of `DeviceList`
// It will add bob devices to the DeviceList
// It will add `@testing_florian1:matrix.org` devices to the DeviceList
await flushPromises();

const devicesInfo = await aliceClient.getUserDeviceInfo([user]);
Expand Down

0 comments on commit d8a78c7

Please sign in to comment.