diff --git a/client/v3/client_test.go b/client/v3/client_test.go index 079fbb3b1bc..8c1452a2e77 100644 --- a/client/v3/client_test.go +++ b/client/v3/client_test.go @@ -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) { diff --git a/tools/.golangci.yaml b/tools/.golangci.yaml index 6fb51e4d209..99be96685f9 100644 --- a/tools/.golangci.yaml +++ b/tools/.golangci.yaml @@ -111,7 +111,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