From 1e07cacc794008ef6b5390dc0288d2907a8afda5 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Tue, 8 Nov 2022 18:28:10 +0300 Subject: [PATCH] rpcsrv: fix test client_test.go:1935: Error Trace: /home/rik/dev/neo-go/pkg/services/rpcsrv/client_test.go:1935 Error: Should NOT be empty, but was 00000000-0000-0000-0000-000000000000 Test: TestClient_Iterator_SessionConfigVariations/sessions_disabled It's obviously empty, since we have sessions disabled, but it was not considered to be empty in testify 1.7.0, now it is, see https://github.com/stretchr/testify/commit/840cb801497147a6d30a568e0874dfefb10867a9 --- pkg/services/rpcsrv/client_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/rpcsrv/client_test.go b/pkg/services/rpcsrv/client_test.go index 9c24a4846..a2d1d5d95 100644 --- a/pkg/services/rpcsrv/client_test.go +++ b/pkg/services/rpcsrv/client_test.go @@ -1932,7 +1932,7 @@ func TestClient_Iterator_SessionConfigVariations(t *testing.T) { // We expect unpacked iterator values to be present on stack under InteropInterface cover. res, err := c.InvokeFunction(storageHash, "iterateOverValues", []smartcontract.Parameter{}, nil) require.NoError(t, err) - require.NotEmpty(t, res.Session) + require.Empty(t, res.Session) require.Equal(t, 1, len(res.Stack)) require.Equal(t, stackitem.InteropT, res.Stack[0].Type()) iterator, ok := res.Stack[0].Value().(result.Iterator)