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 20, 2020
1 parent 69320ba commit 069d585
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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 @@ -19,6 +19,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
10 changes: 2 additions & 8 deletions src/ampdoc-fie.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@
* limitations under the License.
*/

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

// TODO(#22733): Remove this file once "ampdoc-fie" is cleaned up.

Expand Down Expand Up @@ -62,6 +57,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 069d585

Please sign in to comment.