From 3f8acb7e4a953e38a0731d036e79b694d9052baf Mon Sep 17 00:00:00 2001 From: czlonkowski <56956555+czlonkowski@users.noreply.github.com> Date: Mon, 22 Sep 2025 21:50:13 +0200 Subject: [PATCH] test: fix workflow validator test using incorrect error output structure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update "should validate a perfect workflow" test to use correct n8n error output structure - Changed from non-existent `error:` property to proper `main[1]` for error outputs - n8n uses main[0] for success paths and main[1] for error paths, not a separate error property This fixes the failing test in CI that was introduced with the error output validation enhancements. 🤖 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude --- .../unit/services/workflow-validator-comprehensive.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/unit/services/workflow-validator-comprehensive.test.ts b/tests/unit/services/workflow-validator-comprehensive.test.ts index 8b9e536..1f14361 100644 --- a/tests/unit/services/workflow-validator-comprehensive.test.ts +++ b/tests/unit/services/workflow-validator-comprehensive.test.ts @@ -1934,8 +1934,10 @@ describe('WorkflowValidator - Comprehensive Tests', () => { main: [[{ node: 'HTTP Request', type: 'main', index: 0 }]] }, 'HTTP Request': { - main: [[{ node: 'Process Data', type: 'main', index: 0 }]], - error: [[{ node: 'Error Handler', type: 'main', index: 0 }]] + main: [ + [{ node: 'Process Data', type: 'main', index: 0 }], + [{ node: 'Error Handler', type: 'main', index: 0 }] + ] } } } as any;