Skip to content

Commit ac3239e

Browse files
fix existing tests
1 parent 7d0910b commit ac3239e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/cli/src/__tests__/workflow-runner.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ describe('run', () => {
238238
const data = mock<IWorkflowExecutionDataProcess>({
239239
triggerToStartFrom: { name: 'trigger', data: mock<ITaskData>() },
240240

241-
workflowData: { nodes: [], id: 'workflow-id' },
241+
workflowData: { nodes: [], id: 'workflow-id', settings: undefined },
242242
executionData: undefined,
243243
startNodes: [mock<StartNodeData>()],
244244
destinationNode: undefined,
@@ -256,6 +256,8 @@ describe('run', () => {
256256
expect(WorkflowExecuteAdditionalData.getBase).toHaveBeenCalledWith({
257257
userId: data.userId,
258258
workflowId: 'workflow-id',
259+
executionTimeoutTimestamp: undefined,
260+
workflowSettings: {},
259261
});
260262
expect(ManualExecutionService.prototype.runManually).toHaveBeenCalledWith(
261263
data,

packages/cli/src/scaling/__tests__/job-processor.service.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ describe('JobProcessor', () => {
214214
expect(WorkflowExecuteAdditionalData.getBase).toHaveBeenCalledWith({
215215
workflowId: execution.workflowData.id,
216216
executionTimeoutTimestamp: undefined,
217+
workflowSettings: execution.workflowData.settings,
217218
});
218219

219220
expect(manualExecutionService.runManually).toHaveBeenCalledWith(

0 commit comments

Comments
 (0)