mirror of https://github.com/laurent22/joplin.git
Tools: Fixed another race condition in test units
parent
234c05a966
commit
a737a21185
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue