Fix attachment backfill mock tests

This commit is contained in:
trevor-signal
2025-09-24 12:33:39 -04:00
committed by GitHub
parent 1c9b09fd7c
commit 0bdc96f0a9
2 changed files with 3 additions and 1 deletions

View File

@@ -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),

View File

@@ -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');