From 774b2b82b84f568cede90d69ecbf7cf7269124f6 Mon Sep 17 00:00:00 2001 From: trevor-signal <131492920+trevor-signal@users.noreply.github.com> Date: Thu, 25 Jul 2024 13:06:12 -0400 Subject: [PATCH] Reduce test-electron CI flake on macOS --- ts/test-electron/services/AttachmentBackupManager_test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ts/test-electron/services/AttachmentBackupManager_test.ts b/ts/test-electron/services/AttachmentBackupManager_test.ts index 8122a7043fa5..2ccd99aa753d 100644 --- a/ts/test-electron/services/AttachmentBackupManager_test.ts +++ b/ts/test-electron/services/AttachmentBackupManager_test.ts @@ -32,7 +32,7 @@ const BACKUP_CDN = 3; const RELATIVE_ATTACHMENT_PATH = getRelativePath(createName()); const LOCAL_ENCRYPTION_KEYS = Bytes.toBase64(generateKeys()); -const ATTACHMENT_SIZE = 3577986; +const ATTACHMENT_SIZE = 188610; describe('AttachmentBackupManager/JobManager', function attachmentBackupManager(this: Mocha.Suite) { this.timeout(10 * SECOND); @@ -102,7 +102,7 @@ describe('AttachmentBackupManager/JobManager', function attachmentBackupManager( await DataWriter.ensureFilePermissions(); await encryptAttachmentV2({ plaintext: { - absolutePath: join(__dirname, '../../../fixtures/ghost-kitty.mp4'), + absolutePath: join(__dirname, '../../../fixtures/cat-gif.mp4'), }, keys: Bytes.fromBase64(LOCAL_ENCRYPTION_KEYS), sink: createWriteStream(absolutePath), @@ -158,7 +158,6 @@ describe('AttachmentBackupManager/JobManager', function attachmentBackupManager( afterEach(async () => { sandbox.restore(); - await backupManager?.stop(); });