[#155] sdk/eacl: Fix package cross dependency

Remove the usage of object package constants from eacl unit tests.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-09-22 13:55:17 +03:00 committed by Leonard Lyubich
parent c66b23995c
commit b991e014a9
2 changed files with 2 additions and 4 deletions

View file

@ -3,7 +3,6 @@ package eacl
import (
"testing"
"github.com/nspcc-dev/neofs-api-go/pkg/object"
v2acl "github.com/nspcc-dev/neofs-api-go/v2/acl"
"github.com/stretchr/testify/require"
)
@ -11,7 +10,7 @@ import (
func TestFilter(t *testing.T) {
filter := &Filter{
from: HeaderFromObject,
name: object.HdrSysNamePayloadLength,
name: "some name",
matcher: MatchStringEqual,
value: "200",
}

View file

@ -4,7 +4,6 @@ import (
"crypto/ecdsa"
"testing"
"github.com/nspcc-dev/neofs-api-go/pkg/object"
v2acl "github.com/nspcc-dev/neofs-api-go/v2/acl"
"github.com/nspcc-dev/neofs-crypto/test"
"github.com/stretchr/testify/require"
@ -63,7 +62,7 @@ func TestRecord_AddFilter(t *testing.T) {
filters := []Filter{
{
from: HeaderFromObject,
name: object.HdrSysNameCID,
name: "some name",
matcher: MatchStringEqual,
value: "ContainerID",
},