Skip to content

Commit 8252026

Browse files
[AI-FSSDK] [FSSDK-12337] Update experiment type values to short-form abbreviations
1 parent a81de77 commit 8252026

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

OptimizelySDK.Tests/ProjectConfigTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ public void TestCmabFieldPopulation()
14961496
public class FeatureRolloutProjectConfigTest
14971497
{
14981498
private string BuildFeatureRolloutDatafile(
1499-
string experimentType = "feature_rollout",
1499+
string experimentType = "fr",
15001500
string rolloutId = "rollout_1",
15011501
bool includeRollout = true,
15021502
bool includeRolloutVariations = true)
@@ -1735,7 +1735,7 @@ public void TestTypeFieldParsedCorrectly()
17351735
new NoOpErrorHandler());
17361736

17371737
var rolloutExperiment = config.GetExperimentFromKey("rollout_experiment");
1738-
Assert.AreEqual("feature_rollout", rolloutExperiment.Type);
1738+
Assert.AreEqual("fr", rolloutExperiment.Type);
17391739
}
17401740
}
17411741
}

OptimizelySDK/Config/DatafileProjectConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ private void Initialize()
462462
}
463463

464464
var experiment = _ExperimentIdMap[experimentId];
465-
if (experiment.Type != "feature_rollout")
465+
if (experiment.Type != "fr")
466466
{
467467
continue;
468468
}

0 commit comments

Comments
 (0)