Skip to content

Commit 7ac8437

Browse files
committed
Fix test
1 parent 05d7d81 commit 7ac8437

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core-api/src/test/java/com/optimizely/ab/OptimizelyUserContextTest.java

+4
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,8 @@ public void decisionNotification() {
707707
OptimizelyJSON variables = optimizely.getAllFeatureVariables(flagKey, userId);
708708
String ruleKey = "exp_no_audience";
709709
List<String> reasons = Collections.emptyList();
710+
String experimentId = "10420810910";
711+
String variationId = "10418551353";
710712

711713
final Map<String, Object> testDecisionInfoMap = new HashMap<>();
712714
testDecisionInfoMap.put(FLAG_KEY, flagKey);
@@ -715,6 +717,8 @@ public void decisionNotification() {
715717
testDecisionInfoMap.put(VARIABLES, variables.toMap());
716718
testDecisionInfoMap.put(RULE_KEY, ruleKey);
717719
testDecisionInfoMap.put(REASONS, reasons);
720+
testDecisionInfoMap.put(EXPERIMENT_ID, experimentId);
721+
testDecisionInfoMap.put(VARIATION_ID, variationId);
718722

719723
Map<String, Object> attributes = Collections.singletonMap("gender", "f");
720724
OptimizelyUserContext user = optimizely.createUserContext(userId, attributes);

0 commit comments

Comments
 (0)