Skip to content

Commit

Permalink
revert: modifiers on DecisionService & test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikechu-optimizely committed Nov 5, 2024
1 parent 3dc6f0a commit a6abb60
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion OptimizelySDK.Tests/DecisionServiceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,12 @@ public void TestGetVariationLogsErrorWhenUserProfileMapItsNull()
var variationResult = decisionService.GetVariation(experiment,
OptimizelyUserContextMock.Object, ProjectConfig, options);
Assert.AreEqual(variationResult.DecisionReasons.ToReport(true)[0],
"Audiences for experiment \"etag3\" collectively evaluated to FALSE");
"We were unable to get a user profile map from the UserProfileService.");
Assert.AreEqual(variationResult.DecisionReasons.ToReport(true)[1],
"No previously activated variation of experiment \"etag3\" for user \"genericUserId\" found in user profile.");
Assert.AreEqual(variationResult.DecisionReasons.ToReport(true)[2],
"Audiences for experiment \"etag3\" collectively evaluated to FALSE");
Assert.AreEqual(variationResult.DecisionReasons.ToReport(true)[3],
"User \"genericUserId\" does not meet conditions to be in experiment \"etag3\".");
}

Expand Down
6 changes: 3 additions & 3 deletions OptimizelySDK/Bucketing/DecisionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public class DecisionService
public const string LOGGING_KEY_TYPE_RULE = "rule";

private Bucketer Bucketer;
private readonly IErrorHandler ErrorHandler;
private static UserProfileService UserProfileService;
private readonly ILogger Logger;
private IErrorHandler ErrorHandler;
private UserProfileService UserProfileService;
private ILogger Logger;

/// <summary>
/// Associative array of user IDs to an associative array
Expand Down

0 comments on commit a6abb60

Please sign in to comment.