From b4b3076f76c1bc8f879d5e96af63d827ab9bff3b Mon Sep 17 00:00:00 2001 From: Dima Voytenko Date: Sun, 19 Jul 2020 02:04:07 -0700 Subject: [PATCH] Turn on ampdoc-fie experiment for integration and e2e tests --- build-system/global-configs/prod-config.json | 1 + src/ampdoc-fie.js | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/build-system/global-configs/prod-config.json b/build-system/global-configs/prod-config.json index 475214389bcae..b845b02272f71 100644 --- a/build-system/global-configs/prod-config.json +++ b/build-system/global-configs/prod-config.json @@ -20,6 +20,7 @@ "amp-story-responsive-units": 1, "amp-story-v1": 1, "ampdoc-closest": 1, + "ampdoc-fie": 1, "chunked-amp": 1, "doubleclickSraExp": 0.01, "doubleclickSraReportExcludedBlock": 0.1, diff --git a/src/ampdoc-fie.js b/src/ampdoc-fie.js index fb820f36f2df6..3134152350ead 100644 --- a/src/ampdoc-fie.js +++ b/src/ampdoc-fie.js @@ -16,9 +16,7 @@ import { forceExperimentBranch, - getExperimentBranch, isExperimentOn, - randomlySelectUnsetExperiments, } from './experiments'; // TODO(#22733): Remove this file once "ampdoc-fie" is cleaned up. @@ -62,6 +60,5 @@ export function isInAmpdocFieExperiment(win) { if (!isExperimentOn(win, 'ampdoc-fie')) { return false; } - randomlySelectUnsetExperiments(win, EXPERIMENT_INFO_LIST); - return getExperimentBranch(win, EXPERIMENT_ID) === EXPERIMENT.experiment; + return true; }