From 1335bb728ab96cc2b4060ba056b36a72291da717 Mon Sep 17 00:00:00 2001 From: trevor-signal <131492920+trevor-signal@users.noreply.github.com> Date: Mon, 8 May 2023 10:11:02 -0400 Subject: [PATCH] In integration tests, provide all contacts a prekey --- ts/test-mock/bootstrap.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ts/test-mock/bootstrap.ts b/ts/test-mock/bootstrap.ts index 5c9faca4ac..d7ac51beeb 100644 --- a/ts/test-mock/bootstrap.ts +++ b/ts/test-mock/bootstrap.ts @@ -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 { + return [...this.contacts, ...this.contactsWithoutProfileKey]; + } + // // Private //