forked from TrueCloudLab/frostfs-node
[#857] golangci: Add testifylint linter
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>rpc_not_defined
parent
5d7833c89b
commit
94ffe8bb45
|
@ -80,5 +80,6 @@ linters:
|
|||
- importas
|
||||
- truecloudlab-linters
|
||||
- perfsprint
|
||||
- testifylint
|
||||
disable-all: true
|
||||
fast: false
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue