Merge pull request #191 from nocobase/fix/plugin-workflow-test

Fix: plugin-workflow test
This commit is contained in:
Junyi 2022-02-15 00:18:21 +08:00 committed by GitHub
commit 0d0acba357
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -394,7 +394,7 @@ describe('execution', () => {
const [execution] = await workflow.getExecutions(); const [execution] = await workflow.getExecutions();
expect(execution.status).toEqual(EXECUTION_STATUS.STARTED); expect(execution.status).toEqual(EXECUTION_STATUS.STARTED);
const [pending] = await execution.getJobs({ nodeId: n2.id }); const [pending] = await execution.getJobs({ where: { nodeId: n2.id } });
pending.set('result', 123); pending.set('result', 123);
await execution.resume(pending); await execution.resume(pending);