Skip to content

Commit

Permalink
Deactivate auto backup service in e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tkleinke committed Feb 26, 2025
1 parent 4059b51 commit b2ec3de
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export class AutoBackupService {

public start() {

if (remote.getGlobal('mode') === 'test') return;

this.worker = createWorker(AUTO_BACKUP);

this.worker.onmessage = ({ data }) => {
Expand All @@ -52,6 +54,8 @@ export class AutoBackupService {

public requestBackupCreation(): Promise<void> {

if (remote.getGlobal('mode') === 'test') return;

if (!this.running) this.worker.postMessage({ command: 'createBackups' });

return new Promise(resolve => {
Expand Down

0 comments on commit b2ec3de

Please sign in to comment.