From f0134ef26e549916b1ee238af98c4eca2d95192d Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 26 Apr 2022 12:56:21 +0300 Subject: [PATCH] [#197] pool: Remove no longer needed test func `TestCopySessionTokenWithoutSignatureAndContext` was based on already removed function. Signed-off-by: Leonard Lyubich --- pool/pool_test.go | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/pool/pool_test.go b/pool/pool_test.go index 94f0d47..d76d816 100644 --- a/pool/pool_test.go +++ b/pool/pool_test.go @@ -19,7 +19,6 @@ import ( "github.com/nspcc-dev/neofs-sdk-go/object" "github.com/nspcc-dev/neofs-sdk-go/object/address" "github.com/nspcc-dev/neofs-sdk-go/session" - sessiontest "github.com/nspcc-dev/neofs-sdk-go/session/test" "github.com/nspcc-dev/neofs-sdk-go/user" "github.com/stretchr/testify/require" "go.uber.org/zap" @@ -678,31 +677,3 @@ func TestWaitPresence(t *testing.T) { require.NoError(t, err) }) } - -func TestCopySessionTokenWithoutSignatureAndContext(t *testing.T) { - from := *sessiontest.Object() - - const verb = session.VerbObjectHead - from.ForVerb(verb) - - to := from - - require.Equal(t, from, to) - - require.False(t, from.VerifySignature()) - require.False(t, to.VerifySignature()) - - require.True(t, from.AssertVerb(verb)) - require.True(t, to.AssertVerb(verb)) - - k, err := keys.NewPrivateKey() - require.NoError(t, err) - - from.ForVerb(verb + 1) - require.NoError(t, from.Sign(k.PrivateKey)) - - require.True(t, from.VerifySignature()) - require.False(t, to.VerifySignature()) - require.True(t, from.AssertVerb(verb+1)) - require.False(t, to.AssertVerb(verb+1)) -}