From 9ecb64a99229abc626012be597af55f54eba2e0a Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 25 Sep 2024 10:32:58 +0200 Subject: [PATCH] Use sqs flag correctly on test --- packages/server/src/api/routes/tests/viewV2.spec.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/server/src/api/routes/tests/viewV2.spec.ts b/packages/server/src/api/routes/tests/viewV2.spec.ts index a2af95bee3..a47d6dd828 100644 --- a/packages/server/src/api/routes/tests/viewV2.spec.ts +++ b/packages/server/src/api/routes/tests/viewV2.spec.ts @@ -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) )