Skip to content

Commit

Permalink
Turn on ampdoc-fie experiment for integration and e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Voytenko committed Jul 19, 2020
1 parent 79041b5 commit b4b3076
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions build-system/global-configs/prod-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 1 addition & 4 deletions src/ampdoc-fie.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@

import {
forceExperimentBranch,
getExperimentBranch,
isExperimentOn,
randomlySelectUnsetExperiments,
} from './experiments';

// TODO(#22733): Remove this file once "ampdoc-fie" is cleaned up.
Expand Down Expand 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;
}

0 comments on commit b4b3076

Please sign in to comment.