diff --git a/pkg/client/optimizely_user_context_test.go b/pkg/client/optimizely_user_context_test.go index e85fe676..ec29bda2 100644 --- a/pkg/client/optimizely_user_context_test.go +++ b/pkg/client/optimizely_user_context_test.go @@ -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) @@ -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() {