[#327] nns: Support Null returned value

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-08-31 18:05:09 +03:00 committed by LeL
parent d808f72c38
commit 71891029da
2 changed files with 21 additions and 11 deletions

View file

@ -112,7 +112,7 @@ func TestNNS_ResolveContainerName(t *testing.T) {
testC.res.Stack[0] = stackitem.Null{}
_, err := n.ResolveContainerName(testContainerName)
require.Error(t, err)
require.ErrorIs(t, err, errNotFound)
})
t.Run("array stack item with non-slice value", func(t *testing.T) {