forked from TrueCloudLab/frostfs-node
[#1541] morph/event: Simplify container contract event parsing
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
d5c46d812a
commit
a353d45742
4 changed files with 39 additions and 61 deletions
|
@ -4,7 +4,6 @@ import (
|
|||
"crypto/sha256"
|
||||
"testing"
|
||||
|
||||
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/morph/event"
|
||||
cidtest "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/container/id/test"
|
||||
"github.com/nspcc-dev/neo-go/pkg/vm/stackitem"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
@ -18,7 +17,7 @@ func TestParseDeleteSuccess(t *testing.T) {
|
|||
}
|
||||
|
||||
_, err := ParseDeleteSuccess(createNotifyEventFromItems(prms))
|
||||
require.EqualError(t, err, event.WrongNumberOfParameters(1, len(prms)).Error())
|
||||
require.Error(t, err)
|
||||
})
|
||||
|
||||
t.Run("wrong container parameter", func(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue