Skip to content

Commit bfdc2e0

Browse files
test: correct test
1 parent 3fab122 commit bfdc2e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OptimizelySDK.Tests/OptimizelyUserContextTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ public void DecideWhenConfigIsNull()
426426
}
427427

428428
[Test]
429-
public void SeparateDecideShouldHaveSameNumberOfUpsSaveOnlyOneLookup()
429+
public void SeparateDecideShouldHaveSameNumberOfUpsSaveAndLookup()
430430
{
431431
var experimentFlagKey = "double_single_variable_feature";
432432
var rolloutFlagKey = "boolean_single_variable_feature";
@@ -457,7 +457,7 @@ public void SeparateDecideShouldHaveSameNumberOfUpsSaveOnlyOneLookup()
457457
LoggerMock.Verify(
458458
l => l.Log(LogLevel.ERROR, "The UserProfileService returned an invalid map."),
459459
Times.Never);
460-
userProfileServiceMock.Verify(l => l.Lookup(UserID), Times.Once);
460+
userProfileServiceMock.Verify(l => l.Lookup(UserID), Times.Exactly(2));
461461
userProfileServiceMock.Verify(l => l.Save(It.IsAny<Dictionary<string, object>>()),
462462
Times.Exactly(2));
463463
Assert.AreEqual(saveArgsCollector[0], expectedUserProfileExperiment.ToMap());

0 commit comments

Comments
 (0)