Tools: Fixed another race condition in test units

pull/4209/head
Laurent Cozic 2020-12-09 15:06:14 +00:00
parent 234c05a966
commit a737a21185
1 changed files with 2 additions and 2 deletions

View File

@ -257,8 +257,8 @@ describe('services_EncryptionService', function() {
await service.loadMasterKey_(masterKey, '123456', true);
const sourcePath = `${__dirname}/../tests/support/photo.jpg`;
const encryptedPath = `${__dirname}/data/photo.crypted`;
const decryptedPath = `${__dirname}/data/photo.jpg`;
const encryptedPath = `${Setting.value('tempDir')}/photo.crypted`;
const decryptedPath = `${Setting.value('tempDir')}/photo.jpg`;
await service.encryptFile(sourcePath, encryptedPath);
await service.decryptFile(encryptedPath, decryptedPath);