From 72a0364ca0a5c92170bf128866b2ee5f53c3e8f9 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Mon, 8 Jul 2024 15:02:26 +0100 Subject: [PATCH] Fix search tests. --- packages/server/src/api/routes/tests/search.spec.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/server/src/api/routes/tests/search.spec.ts b/packages/server/src/api/routes/tests/search.spec.ts index a64685d87f..785ac1498d 100644 --- a/packages/server/src/api/routes/tests/search.spec.ts +++ b/packages/server/src/api/routes/tests/search.spec.ts @@ -54,10 +54,13 @@ describe.each([ let rows: Row[] beforeAll(async () => { + await config.withCoreEnv({ SQS_SEARCH_ENABLE: "true" }, () => config.init()) if (isSqs) { - envCleanup = config.setCoreEnv({ SQS_SEARCH_ENABLE: "true" }) + envCleanup = config.setCoreEnv({ + SQS_SEARCH_ENABLE: "true", + SQS_SEARCH_ENABLE_TENANTS: [config.getTenantId()], + }) } - await config.init() if (config.app?.appId) { config.app = await config.api.application.update(config.app?.appId, {