Use sqs flag correctly on test

This commit is contained in:
Adria Navarro 2024-09-25 10:32:58 +02:00
parent 7a7ce3dc62
commit 9ecb64a992
1 changed files with 10 additions and 1 deletions

View File

@ -2291,8 +2291,17 @@ describe.each([
},
})
const flags = [`*:${FeatureFlag.ENRICHED_RELATIONSHIPS}`]
if (isLucene) {
flags.push("*:!SQS")
} else if (isSqs) {
flags.push("*:SQS")
}
const response = await withCoreEnv(
{ TENANT_FEATURE_FLAGS: `*:${FeatureFlag.ENRICHED_RELATIONSHIPS}` },
{
TENANT_FEATURE_FLAGS: flags.join(","),
},
() => config.api.viewV2.search(view.id)
)