[#857] golangci: Add testifylint linter

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
pull/857/head
Dmitrii Stepanov 2023-12-11 13:09:57 +03:00
parent 5d7833c89b
commit 94ffe8bb45
3 changed files with 3 additions and 2 deletions

View File

@ -80,5 +80,6 @@ linters:
- importas
- truecloudlab-linters
- perfsprint
- testifylint
disable-all: true
fast: false

View File

@ -82,7 +82,7 @@ func runTestIgnoreLogicalErrors(t *testing.T, s common.Storage, objects []object
_, err := s.Iterate(context.Background(), iterPrm)
require.Equal(t, err, logicErr)
require.Equal(t, len(objects)/2, len(seen))
require.Len(t, seen, len(objects)/2)
for i := range objects {
d, ok := seen[objects[i].addr.String()]
if ok {

View File

@ -91,7 +91,7 @@ func TestFlush[Option any](
require.Equal(t, uint32(0), errCount.Load())
require.Error(t, wc.Flush(context.Background(), false))
require.True(t, errCount.Load() > 0)
require.Greater(t, errCount.Load(), uint32(0))
require.NoError(t, wc.Flush(context.Background(), true))
check(t, mb, bs, objects)