add delay in test to allow Alice to fetch Bob's device keys
This commit is contained in:
parent
5c51d179b9
commit
b8ed73a9ab
1 changed files with 8 additions and 0 deletions
|
@ -48,6 +48,10 @@ test.describe("User verification", () => {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Wait a bit so that Alice can retrieve our device keys.
|
||||||
|
await new Promise((resolve) => {
|
||||||
|
setTimeout(resolve, 500);
|
||||||
|
});
|
||||||
return client.getCrypto().requestVerificationDM(aliceCredentials.userId, dmRoomId);
|
return client.getCrypto().requestVerificationDM(aliceCredentials.userId, dmRoomId);
|
||||||
},
|
},
|
||||||
{ dmRoomId, aliceCredentials },
|
{ dmRoomId, aliceCredentials },
|
||||||
|
@ -97,6 +101,10 @@ test.describe("User verification", () => {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Wait a bit so that Alice can retrieve our device keys.
|
||||||
|
await new Promise((resolve) => {
|
||||||
|
setTimeout(resolve, 500);
|
||||||
|
});
|
||||||
return client.getCrypto().requestVerificationDM(aliceCredentials.userId, dmRoomId);
|
return client.getCrypto().requestVerificationDM(aliceCredentials.userId, dmRoomId);
|
||||||
},
|
},
|
||||||
{ dmRoomId, aliceCredentials },
|
{ dmRoomId, aliceCredentials },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue