From 0bdc96f0a9027ebf5da2d37f0ad2a40349bab15b Mon Sep 17 00:00:00 2001 From: trevor-signal <131492920+trevor-signal@users.noreply.github.com> Date: Wed, 24 Sep 2025 12:33:39 -0400 Subject: [PATCH] Fix attachment backfill mock tests --- ts/test-mock/bootstrap.ts | 3 ++- ts/test-mock/messaging/backfill_test.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ts/test-mock/bootstrap.ts b/ts/test-mock/bootstrap.ts index 35252a25b4..c14bd9e32c 100644 --- a/ts/test-mock/bootstrap.ts +++ b/ts/test-mock/bootstrap.ts @@ -34,6 +34,7 @@ import { encryptAttachmentV2, generateAttachmentKeys, } from '../AttachmentCrypto.js'; +import { isVideoTypeSupported } from '../util/GoogleChrome.js'; export { App }; @@ -689,7 +690,7 @@ export class Bootstrap { plaintext: { data, }, - needIncrementalMac: true, + needIncrementalMac: isVideoTypeSupported(contentType), sink: passthrough, }), this.server.storeAttachmentOnCdn(cdnNumber, cdnKey, passthrough), diff --git a/ts/test-mock/messaging/backfill_test.ts b/ts/test-mock/messaging/backfill_test.ts index eb7c83bcb7..18fc90ca61 100644 --- a/ts/test-mock/messaging/backfill_test.ts +++ b/ts/test-mock/messaging/backfill_test.ts @@ -197,6 +197,7 @@ describe('attachment backfill', function (this: Mocha.Suite) { .getByRole('button', { name: 'Open this attachment in a larger view', }) + .first() .waitFor(); debug('failing second attachment');