Reduce Windows CI flake for backup attachments test

This commit is contained in:
trevor-signal 2024-10-03 13:32:54 -04:00 committed by GitHub
parent 062bcaab76
commit f8041ee1a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 1 deletions

View file

@ -110,6 +110,7 @@ import { getRoomIdFromRootKey } from '../../util/callLinksRingrtc';
import { reinitializeRedux } from '../../state/reinitializeRedux';
import { getParametersForRedux, loadAll } from '../allLoaders';
import { resetBackupMediaDownloadProgress } from '../../util/backupMediaDownload';
import { getEnvironment, isTestEnvironment } from '../../environment';
const MAX_CONCURRENCY = 10;
@ -415,7 +416,10 @@ export class BackupImportStream extends Writable {
await DataReader.getSizeOfPendingBackupAttachmentDownloadJobs()
);
if (this.backupType !== BackupType.TestOnlyPlaintext) {
if (
this.backupType !== BackupType.TestOnlyPlaintext &&
!isTestEnvironment(getEnvironment())
) {
await AttachmentDownloadManager.start();
}

View file

@ -122,6 +122,7 @@ describe('backup/attachments', () => {
received_at_ms: timestamp,
sourceServiceId: CONTACT_A,
sourceDevice: 1,
schemaVersion: 0,
sent_at: timestamp,
timestamp,
readStatus: ReadStatus.Read,

View file

@ -80,6 +80,8 @@ function sortAndNormalize(
sourceDevice: _sourceDevice,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
editMessageReceivedAt: _editMessageReceivedAt,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
schemaVersion: _schemaVersion,
...rest
} = message;