From e074030a0ffdf13a1ce5652b2587898cb1bc7b73 Mon Sep 17 00:00:00 2001 From: adrinr Date: Mon, 30 Jan 2023 16:39:15 +0000 Subject: [PATCH] Fix test after patch --- packages/worker/src/tests/TestConfiguration.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/worker/src/tests/TestConfiguration.ts b/packages/worker/src/tests/TestConfiguration.ts index ce6106da87..fec3e7f29a 100644 --- a/packages/worker/src/tests/TestConfiguration.ts +++ b/packages/worker/src/tests/TestConfiguration.ts @@ -27,6 +27,7 @@ import { import structures, { TENANT_ID, CSRF_TOKEN } from "./structures" import { CreateUserResponse, User, AuthToken } from "@budibase/types" import API from "./api" +import sdk from "../sdk" enum Mode { CLOUD = "cloud", @@ -139,6 +140,9 @@ class TestConfiguration { // create user / new tenant const res = await this.api.users.createAdminUser() + // This needs to be added because it was disabled for bulk testing: // https://github.com/Budibase/budibase/issues/6134 + await sdk.users.addTenant(res.tenantId, res.userId, res.email) + // return the created user const userRes = await this.api.users.getUser(res.userId, { headers: {