In integration tests, provide all contacts a prekey
This commit is contained in:
parent
83abcd4cca
commit
1335bb728a
1 changed files with 5 additions and 1 deletions
|
@ -231,7 +231,7 @@ export class Bootstrap {
|
|||
const desktopKey = await this.desktop.popSingleUseKey();
|
||||
await this.phone.addSingleUseKey(this.desktop, desktopKey);
|
||||
|
||||
for (const contact of this.contacts) {
|
||||
for (const contact of this.allContacts) {
|
||||
for (const uuidKind of [UUIDKind.ACI, UUIDKind.PNI]) {
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
const contactKey = await this.desktop.popSingleUseKey(uuidKind);
|
||||
|
@ -350,6 +350,10 @@ export class Bootstrap {
|
|||
return this.privContactsWithoutProfileKey;
|
||||
}
|
||||
|
||||
public get allContacts(): ReadonlyArray<PrimaryDevice> {
|
||||
return [...this.contacts, ...this.contactsWithoutProfileKey];
|
||||
}
|
||||
|
||||
//
|
||||
// Private
|
||||
//
|
||||
|
|
Loading…
Add table
Reference in a new issue