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 { reinitializeRedux } from '../../state/reinitializeRedux';
|
||||||
import { getParametersForRedux, loadAll } from '../allLoaders';
|
import { getParametersForRedux, loadAll } from '../allLoaders';
|
||||||
import { resetBackupMediaDownloadProgress } from '../../util/backupMediaDownload';
|
import { resetBackupMediaDownloadProgress } from '../../util/backupMediaDownload';
|
||||||
|
import { getEnvironment, isTestEnvironment } from '../../environment';
|
||||||
|
|
||||||
const MAX_CONCURRENCY = 10;
|
const MAX_CONCURRENCY = 10;
|
||||||
|
|
||||||
|
@ -415,7 +416,10 @@ export class BackupImportStream extends Writable {
|
||||||
await DataReader.getSizeOfPendingBackupAttachmentDownloadJobs()
|
await DataReader.getSizeOfPendingBackupAttachmentDownloadJobs()
|
||||||
);
|
);
|
||||||
|
|
||||||
if (this.backupType !== BackupType.TestOnlyPlaintext) {
|
if (
|
||||||
|
this.backupType !== BackupType.TestOnlyPlaintext &&
|
||||||
|
!isTestEnvironment(getEnvironment())
|
||||||
|
) {
|
||||||
await AttachmentDownloadManager.start();
|
await AttachmentDownloadManager.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -122,6 +122,7 @@ describe('backup/attachments', () => {
|
||||||
received_at_ms: timestamp,
|
received_at_ms: timestamp,
|
||||||
sourceServiceId: CONTACT_A,
|
sourceServiceId: CONTACT_A,
|
||||||
sourceDevice: 1,
|
sourceDevice: 1,
|
||||||
|
schemaVersion: 0,
|
||||||
sent_at: timestamp,
|
sent_at: timestamp,
|
||||||
timestamp,
|
timestamp,
|
||||||
readStatus: ReadStatus.Read,
|
readStatus: ReadStatus.Read,
|
||||||
|
|
|
@ -80,6 +80,8 @@ function sortAndNormalize(
|
||||||
sourceDevice: _sourceDevice,
|
sourceDevice: _sourceDevice,
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
editMessageReceivedAt: _editMessageReceivedAt,
|
editMessageReceivedAt: _editMessageReceivedAt,
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
|
schemaVersion: _schemaVersion,
|
||||||
|
|
||||||
...rest
|
...rest
|
||||||
} = message;
|
} = message;
|
||||||
|
|
Loading…
Reference in a new issue