Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
Signed-off-by: pulak-opti <[email protected]>
  • Loading branch information
pulak-opti committed Oct 29, 2024
1 parent b99cca7 commit 5ea39ee
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/client/optimizely_user_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,6 @@ func (s *OptimizelyUserContextTestSuite) TestDecideOptionsBypassUps() {
// should return variationId2 set by UPS
s.Equal(variationKey2, decision.VariationKey)
userProfileService.AssertCalled(s.T(), "Lookup", s.userID)
userProfileService.AssertNotCalled(s.T(), "Save", mock.Anything)

options = append(options, decide.IgnoreUserProfileService)
decision = userContext.Decide(flagKey, options)
Expand All @@ -894,8 +893,6 @@ func (s *OptimizelyUserContextTestSuite) TestDecideOptionsBypassUps() {
// should not lookup, ignore variationId2 set by UPS and return variationId1
s.Equal(variationKey1, decision.VariationKey)
userProfileService.AssertNumberOfCalls(s.T(), "Lookup", 1)
// also should not save either
userProfileService.AssertNotCalled(s.T(), "Save", mock.Anything)
}

func (s *OptimizelyUserContextTestSuite) TestDecideOptionsExcludeVariables() {
Expand Down

0 comments on commit 5ea39ee

Please sign in to comment.