Reduce Windows CI flake for backup attachments test
This commit is contained in:
parent
062bcaab76
commit
f8041ee1a4
3 changed files with 8 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue