Skip to content

Commit

Permalink
test: correct test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikechu-optimizely committed Oct 22, 2024
1 parent 3fab122 commit bfdc2e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OptimizelySDK.Tests/OptimizelyUserContextTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public void DecideWhenConfigIsNull()
}

[Test]
public void SeparateDecideShouldHaveSameNumberOfUpsSaveOnlyOneLookup()
public void SeparateDecideShouldHaveSameNumberOfUpsSaveAndLookup()
{
var experimentFlagKey = "double_single_variable_feature";
var rolloutFlagKey = "boolean_single_variable_feature";
Expand Down Expand Up @@ -457,7 +457,7 @@ public void SeparateDecideShouldHaveSameNumberOfUpsSaveOnlyOneLookup()
LoggerMock.Verify(
l => l.Log(LogLevel.ERROR, "The UserProfileService returned an invalid map."),
Times.Never);
userProfileServiceMock.Verify(l => l.Lookup(UserID), Times.Once);
userProfileServiceMock.Verify(l => l.Lookup(UserID), Times.Exactly(2));
userProfileServiceMock.Verify(l => l.Save(It.IsAny<Dictionary<string, object>>()),
Times.Exactly(2));
Assert.AreEqual(saveArgsCollector[0], expectedUserProfileExperiment.ToMap());
Expand Down

0 comments on commit bfdc2e0

Please sign in to comment.