refactor(core): Make PruningService.init and WaitTracker.init consistent (no-changelog) (#9761)

This commit is contained in:
Iván Ovejero
2024-06-17 12:49:40 +02:00
committed by GitHub
parent 7c70b782a1
commit f7352b6a8f
5 changed files with 43 additions and 30 deletions

View File

@@ -14,6 +14,8 @@ import { Logger } from '@/Logger';
import { mockInstance } from '../shared/mocking';
import { createWorkflow } from './shared/db/workflows';
import { createExecution, createSuccessfulExecution } from './shared/db/executions';
import { mock } from 'jest-mock-extended';
import type { OrchestrationService } from '@/services/orchestration.service';
describe('softDeleteOnPruningCycle()', () => {
let pruningService: PruningService;
@@ -29,6 +31,7 @@ describe('softDeleteOnPruningCycle()', () => {
mockInstance(Logger),
Container.get(ExecutionRepository),
mockInstance(BinaryDataService),
mock<OrchestrationService>(),
);
workflow = await createWorkflow();