Skip to content

Commit

Permalink
Updated test functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dasarinaidu committed Oct 9, 2024
1 parent ae90d16 commit 7470a51
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ func (ur *UserRetentionSettingsTestSuite) testPositiveInputValues(settingName st
}) {
logrus.Infof("Updating %s settings with positive values:", settingName)
for _, inputValue := range tests {
ur.T().Run(inputValue.name, func(t *testing.T) {
ur.T().Run(inputValue.name, func(*testing.T) {
err := updateUserRetentionSettings(ur.client, settingName, inputValue.value)
assert.NoError(t, err, "Unexpected error for input '%s'", inputValue.value)
assert.NoError(ur.T(), err, "Unexpected error for input '%s'", inputValue.value)

if err == nil {
settings, err1 := ur.client.Management.Setting.ByID(settingName)
Expand All @@ -63,7 +63,7 @@ func (ur *UserRetentionSettingsTestSuite) testNegativeInputValues(settingName st
}) {
logrus.Infof("Updating %s settings with negative values:", settingName)
for _, inputValue := range tests {
ur.T().Run(inputValue.name, func(t *testing.T) {
ur.T().Run(inputValue.name, func(*testing.T) {
err := updateUserRetentionSettings(ur.client, settingName, inputValue.value)
assert.Error(ur.T(), err, "Expected an error for input '%s', but got nil", inputValue.value)

Expand Down

0 comments on commit 7470a51

Please sign in to comment.