From 96ab5bc7e645cc1bd52e1e4b88295fc96f065c76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Tue, 21 Jan 2025 17:53:59 +0100 Subject: [PATCH] ci: Disable task runner for core and nodes tests (#12757) --- .../__tests__/workflow-execute.test.ts | 11 ++++------- packages/nodes-base/test/setup.ts | 4 ++++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/core/src/execution-engine/__tests__/workflow-execute.test.ts b/packages/core/src/execution-engine/__tests__/workflow-execute.test.ts index 6faa595432..c5924e26f6 100644 --- a/packages/core/src/execution-engine/__tests__/workflow-execute.test.ts +++ b/packages/core/src/execution-engine/__tests__/workflow-execute.test.ts @@ -1,3 +1,7 @@ +// Disable task runners until we have fixed the "run test workflows" test +// to mock the Code Node execution +process.env.N8N_RUNNERS_ENABLED = 'false'; + // NOTE: Diagrams in this file have been created with https://asciiflow.com/#/ // If you update the tests, please update the diagrams as well. // If you add a test, please create a new diagram. @@ -9,8 +13,6 @@ // XX denotes that the node is disabled // PD denotes that the node has pinned data -import { TaskRunnersConfig } from '@n8n/config'; -import { Container } from '@n8n/di'; import { mock } from 'jest-mock-extended'; import { pick } from 'lodash'; import type { @@ -50,11 +52,6 @@ import { WorkflowExecute } from '../workflow-execute'; const nodeTypes = Helpers.NodeTypes(); describe('WorkflowExecute', () => { - const taskRunnersConfig = Container.get(TaskRunnersConfig); - // Disable task runners until we have fixed the "run test workflows" test - // to mock the Code Node execution - taskRunnersConfig.enabled = false; - describe('v0 execution order', () => { const tests: WorkflowTestData[] = legacyWorkflowExecuteTests; diff --git a/packages/nodes-base/test/setup.ts b/packages/nodes-base/test/setup.ts index d2c9bc6e64..7ee571837c 100644 --- a/packages/nodes-base/test/setup.ts +++ b/packages/nodes-base/test/setup.ts @@ -1 +1,5 @@ import 'reflect-metadata'; + +// Disable task runners until we have fixed the "run test workflows" test +// to mock the Code Node execution +process.env.N8N_RUNNERS_ENABLED = 'false';