Skip to content

Commit

Permalink
chore: fix a few lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Jun 25, 2024
1 parent 6cf46e1 commit 4681378
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api-tests/management/alerting/alerting_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -580,16 +580,16 @@ func assertTemplate(t *testing.T, expectedTemplate alert.Template, listTemplates
value, err := expectedParam.GetValueForFloat()
require.NoError(t, err)
assert.True(t, param.Float.HasDefault)
assert.Equal(t, value, param.Float.Default)
assert.Equal(t, value, param.Float.Default) //nolint:testifylint
}

if len(expectedParam.Range) != 0 {
min, max, err := expectedParam.GetRangeForFloat()
require.NoError(t, err)
assert.True(t, param.Float.HasMax)
assert.True(t, param.Float.HasMin)
assert.Equal(t, min, param.Float.Min)
assert.Equal(t, max, param.Float.Max)
assert.Equal(t, min, param.Float.Min) //nolint:testifylint
assert.Equal(t, max, param.Float.Max) //nolint:testifylint
}

assert.Nil(t, param.Bool)
Expand Down

0 comments on commit 4681378

Please sign in to comment.