From 2ae960e2eead46cfa82af937b3cb1944990574ac Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Fri, 26 May 2023 16:58:00 +0100 Subject: [PATCH] fix broken test --- packages/server/src/api/routes/tests/automation.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/server/src/api/routes/tests/automation.spec.ts b/packages/server/src/api/routes/tests/automation.spec.ts index a03bd8d0c3..178189555d 100644 --- a/packages/server/src/api/routes/tests/automation.spec.ts +++ b/packages/server/src/api/routes/tests/automation.spec.ts @@ -12,6 +12,7 @@ import { import { events } from "@budibase/backend-core" import sdk from "../../../sdk" import { Automation } from "@budibase/types" +import { mocks } from "@budibase/backend-core/tests" const MAX_RETRIES = 4 let { @@ -194,6 +195,7 @@ describe("/automations", () => { }) it("triggers a synchronous automation", async () => { + mocks.licenses.useSyncAutomations() let automation = collectAutomation() automation = await config.createAutomation(automation) const res = await request