From 124c3df2ff69638c8919d25512d99f8288e4e137 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Tue, 22 Aug 2023 15:57:55 +0300 Subject: [PATCH] rpcsrv: rename testcases related to unsupported state Testcase name should match the test purpose. Signed-off-by: Anna Shaleva --- pkg/services/rpcsrv/server_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/services/rpcsrv/server_test.go b/pkg/services/rpcsrv/server_test.go index b50a4be1f..5fa25ff44 100644 --- a/pkg/services/rpcsrv/server_test.go +++ b/pkg/services/rpcsrv/server_test.go @@ -98,7 +98,7 @@ var ( var rpcFunctionsWithUnsupportedStatesTestCases = map[string][]rpcTestCase{ "getproof": { { - name: "no params", + name: "unsupported state", params: `[]`, fail: true, errCode: neorpc.ErrUnsupportedStateCode, @@ -106,7 +106,7 @@ var rpcFunctionsWithUnsupportedStatesTestCases = map[string][]rpcTestCase{ }, "verifyproof": { { - name: "no params", + name: "unsupported state", params: `[]`, fail: true, errCode: neorpc.ErrUnsupportedStateCode, @@ -114,7 +114,7 @@ var rpcFunctionsWithUnsupportedStatesTestCases = map[string][]rpcTestCase{ }, "getstate": { { - name: "unknown root/item", + name: "unsupported state", params: `["0000000000000000000000000000000000000000000000000000000000000000", "` + testContractHash + `", "QQ=="]`, fail: true, errCode: neorpc.ErrUnsupportedStateCode, @@ -122,7 +122,7 @@ var rpcFunctionsWithUnsupportedStatesTestCases = map[string][]rpcTestCase{ }, "findstates": { { - name: "invalid contract", + name: "unsupported state", params: `["` + block20StateRootLE + `", "0xabcdef"]`, fail: true, errCode: neorpc.ErrUnsupportedStateCode, @@ -130,7 +130,7 @@ var rpcFunctionsWithUnsupportedStatesTestCases = map[string][]rpcTestCase{ }, "invokefunctionhistoric": { { - name: "no params", + name: "unsupported state", params: `[]`, fail: true, errCode: neorpc.ErrUnsupportedStateCode,