mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(core): Remove own execution-process mode (#8490)
This commit is contained in:
committed by
GitHub
parent
79c9763122
commit
121a55b691
@@ -45,11 +45,7 @@ describe('ActiveExecutions', () => {
|
||||
|
||||
test('Should update execution if add is called with execution ID', async () => {
|
||||
const newExecution = mockExecutionData();
|
||||
const executionId = await activeExecutions.add(
|
||||
newExecution,
|
||||
undefined,
|
||||
FAKE_SECOND_EXECUTION_ID,
|
||||
);
|
||||
const executionId = await activeExecutions.add(newExecution, FAKE_SECOND_EXECUTION_ID);
|
||||
|
||||
expect(executionId).toBe(FAKE_SECOND_EXECUTION_ID);
|
||||
expect(activeExecutions.getActiveExecutions().length).toBe(1);
|
||||
@@ -67,7 +63,7 @@ describe('ActiveExecutions', () => {
|
||||
|
||||
test('Should successfully attach execution to valid executionId', async () => {
|
||||
const newExecution = mockExecutionData();
|
||||
await activeExecutions.add(newExecution, undefined, FAKE_EXECUTION_ID);
|
||||
await activeExecutions.add(newExecution, FAKE_EXECUTION_ID);
|
||||
const deferredPromise = mockCancelablePromise();
|
||||
|
||||
expect(() =>
|
||||
@@ -77,7 +73,7 @@ describe('ActiveExecutions', () => {
|
||||
|
||||
test('Should attach and resolve response promise to existing execution', async () => {
|
||||
const newExecution = mockExecutionData();
|
||||
await activeExecutions.add(newExecution, undefined, FAKE_EXECUTION_ID);
|
||||
await activeExecutions.add(newExecution, FAKE_EXECUTION_ID);
|
||||
const deferredPromise = await mockDeferredPromise();
|
||||
activeExecutions.attachResponsePromise(FAKE_EXECUTION_ID, deferredPromise);
|
||||
const fakeResponse = { data: { resultData: { runData: {} } } };
|
||||
@@ -129,6 +125,7 @@ function mockExecutionData(): IWorkflowExecutionDataProcess {
|
||||
return {
|
||||
executionMode: 'manual',
|
||||
workflowData: {
|
||||
id: '123',
|
||||
name: 'Test workflow 1',
|
||||
active: false,
|
||||
createdAt: new Date(),
|
||||
|
||||
Reference in New Issue
Block a user