Reduce test-electron CI flake on macOS

This commit is contained in:
trevor-signal 2024-07-25 13:06:12 -04:00 committed by GitHub
parent 894522ad12
commit 774b2b82b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,7 +32,7 @@ const BACKUP_CDN = 3;
const RELATIVE_ATTACHMENT_PATH = getRelativePath(createName()); const RELATIVE_ATTACHMENT_PATH = getRelativePath(createName());
const LOCAL_ENCRYPTION_KEYS = Bytes.toBase64(generateKeys()); const LOCAL_ENCRYPTION_KEYS = Bytes.toBase64(generateKeys());
const ATTACHMENT_SIZE = 3577986; const ATTACHMENT_SIZE = 188610;
describe('AttachmentBackupManager/JobManager', function attachmentBackupManager(this: Mocha.Suite) { describe('AttachmentBackupManager/JobManager', function attachmentBackupManager(this: Mocha.Suite) {
this.timeout(10 * SECOND); this.timeout(10 * SECOND);
@ -102,7 +102,7 @@ describe('AttachmentBackupManager/JobManager', function attachmentBackupManager(
await DataWriter.ensureFilePermissions(); await DataWriter.ensureFilePermissions();
await encryptAttachmentV2({ await encryptAttachmentV2({
plaintext: { plaintext: {
absolutePath: join(__dirname, '../../../fixtures/ghost-kitty.mp4'), absolutePath: join(__dirname, '../../../fixtures/cat-gif.mp4'),
}, },
keys: Bytes.fromBase64(LOCAL_ENCRYPTION_KEYS), keys: Bytes.fromBase64(LOCAL_ENCRYPTION_KEYS),
sink: createWriteStream(absolutePath), sink: createWriteStream(absolutePath),
@ -158,7 +158,6 @@ describe('AttachmentBackupManager/JobManager', function attachmentBackupManager(
afterEach(async () => { afterEach(async () => {
sandbox.restore(); sandbox.restore();
await backupManager?.stop(); await backupManager?.stop();
}); });