Fix search tests.

This commit is contained in:
Sam Rose 2024-07-08 15:02:26 +01:00
parent 014ff81841
commit 72a0364ca0
No known key found for this signature in database
1 changed files with 5 additions and 2 deletions

View File

@ -54,10 +54,13 @@ describe.each([
let rows: Row[] let rows: Row[]
beforeAll(async () => { beforeAll(async () => {
await config.withCoreEnv({ SQS_SEARCH_ENABLE: "true" }, () => config.init())
if (isSqs) { 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) { if (config.app?.appId) {
config.app = await config.api.application.update(config.app?.appId, { config.app = await config.api.application.update(config.app?.appId, {