Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/core/decision_service/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2882,9 +2882,12 @@ describe('DecisionService', () => {

describe('local holdouts', () => {
// Helper: build a datafile that has a local holdout targeting a specific experiment or delivery rule.
// Per FSSDK-12760, local holdouts live in the top-level `localHoldouts` section
// (separate from `holdouts`, which now only carries global holdouts).
const makeLocalHoldoutDatafile = (targetRuleId: string, ruleIds: string[] = [targetRuleId]) => {
const datafile = getDecisionTestDatafile();
(datafile as any).holdouts = [
(datafile as any).holdouts = [];
(datafile as any).localHoldouts = [
{
id: 'local_holdout_id',
key: 'local_holdout',
Expand Down
1 change: 1 addition & 0 deletions lib/message/error_message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export const INVALID_CMAB_FETCH_RESPONSE = 'Invalid CMAB fetch response';
export const PROMISE_NOT_ALLOWED = "Promise value is not allowed in sync operation";
export const SERVICE_NOT_RUNNING = "%s not running";
export const EVENT_STORE_FULL = 'Event store is full. Not saving event with id %d.';
export const LOCAL_HOLDOUT_MISSING_INCLUDED_RULES = 'Local holdout "%s" is missing or has empty "includedRules"; skipping.';

export const messages: string[] = [];

Expand Down
Loading
Loading