diff --git a/pkg/network/transport/object/grpc/replication_test.go b/pkg/network/transport/object/grpc/replication_test.go index bbb44d6fa3..15a99e8f17 100644 --- a/pkg/network/transport/object/grpc/replication_test.go +++ b/pkg/network/transport/object/grpc/replication_test.go @@ -8,6 +8,7 @@ import ( "crypto/rand" "encoding/binary" "errors" + "fmt" "testing" objectV2 "github.com/nspcc-dev/neofs-api-go/v2/object" @@ -399,7 +400,7 @@ func TestServer_Replicate(t *testing.T) { sigsRaw := resp.GetObjectSignature() - for i := range 1 { + for i := range 3 { var sigV2 refsv2.Signature l := binary.LittleEndian.Uint32(sigsRaw) @@ -411,9 +412,9 @@ func TestServer_Replicate(t *testing.T) { require.Equal(t, signer.PublicKeyBytes, sig.PublicKeyBytes()) require.True(t, sig.Verify(objectcore.EncodeReplicationMetaInfo( o.GetContainerID(), o.GetID(), o.GetFirstID(), o.GetPreviousID(), o.PayloadSize(), o.Type(), nil, nil, - uint64((123+1+i)*240), mNumber))) + uint64((123+1+i)*240), mNumber)), fmt.Sprintf("wrong %d signature", i+1)) - sigsRaw = sigsRaw[:4+l] + sigsRaw = sigsRaw[4+l:] } }) })