From 49211ab0138fbd9dd188eb0255e5ec898c214567 Mon Sep 17 00:00:00 2001 From: mytharcher Date: Thu, 1 Aug 2024 10:17:19 +0000 Subject: [PATCH] fix(plugin-workflow): fix test case --- .../plugin-workflow/src/server/__tests__/cluster.test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/cluster.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/cluster.test.ts index 675a8df9ef..17f9c0b5bd 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/cluster.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/cluster.test.ts @@ -59,8 +59,11 @@ describe('workflow > cluster', () => { const executions = await w1.getExecutions(); expect(executions.length).toBe(3); - await w1.update({ - enabled: false, + await WorkflowRepo.update({ + filterByTk: w1.id, + values: { + enabled: false, + }, }); await sleep(550);