Export/import attachments in integration tests

This commit is contained in:
Fedor Indutny 2024-10-11 12:14:28 -07:00 committed by GitHub
parent d42df4b201
commit 9ff6c75eb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 292 additions and 116 deletions

View file

@ -10,6 +10,7 @@ import * as log from './logging/log';
import { explodePromise } from './util/explodePromise';
import { AccessType, ipcInvoke } from './sql/channels';
import { backupsService } from './services/backups';
import { AttachmentBackupManager } from './jobs/AttachmentBackupManager';
import { SECOND } from './util/durations';
import { isSignalRoute } from './util/signalRoutes';
import { strictAssert } from './util/assert';
@ -168,6 +169,7 @@ export function getCI({ deviceName }: GetCIOptionsType): CIType {
async function uploadBackup() {
await backupsService.upload();
await AttachmentBackupManager.waitForIdle();
}
function unlink() {