Skip to content

Commit

Permalink
Merge pull request #18776 from mmorel-35/testifylint/float-compare
Browse files Browse the repository at this point in the history
fix: enable float-compare rule from testifylint
  • Loading branch information
serathius authored Oct 24, 2024
2 parents c2261ef + 4c8a41c commit aae197c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion client/v3/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func TestBackoffJitterFraction(t *testing.T) {
require.NotNil(t, c)
defer c.Close()

require.Equal(t, backoffJitterFraction, c.cfg.BackoffJitterFraction)
require.InDelta(t, backoffJitterFraction, c.cfg.BackoffJitterFraction, 0.01)
}

func TestIsHaltErr(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion tools/.golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ linters-settings: # please keep this alphabetized
- ST1019 # Importing the same package multiple times.
testifylint:
disable:
- float-compare
- go-require
- require-error
enable-all: true
Expand Down

0 comments on commit aae197c

Please sign in to comment.