In integration tests, provide all contacts a prekey

This commit is contained in:
trevor-signal 2023-05-08 10:11:02 -04:00 committed by Josh Perez
parent 83abcd4cca
commit 1335bb728a

View file

@ -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
//