rpcsrv: rename testcases related to unsupported state
Testcase name should match the test purpose. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
227b0c5480
commit
124c3df2ff
1 changed files with 5 additions and 5 deletions
|
@ -98,7 +98,7 @@ var (
|
||||||
var rpcFunctionsWithUnsupportedStatesTestCases = map[string][]rpcTestCase{
|
var rpcFunctionsWithUnsupportedStatesTestCases = map[string][]rpcTestCase{
|
||||||
"getproof": {
|
"getproof": {
|
||||||
{
|
{
|
||||||
name: "no params",
|
name: "unsupported state",
|
||||||
params: `[]`,
|
params: `[]`,
|
||||||
fail: true,
|
fail: true,
|
||||||
errCode: neorpc.ErrUnsupportedStateCode,
|
errCode: neorpc.ErrUnsupportedStateCode,
|
||||||
|
@ -106,7 +106,7 @@ var rpcFunctionsWithUnsupportedStatesTestCases = map[string][]rpcTestCase{
|
||||||
},
|
},
|
||||||
"verifyproof": {
|
"verifyproof": {
|
||||||
{
|
{
|
||||||
name: "no params",
|
name: "unsupported state",
|
||||||
params: `[]`,
|
params: `[]`,
|
||||||
fail: true,
|
fail: true,
|
||||||
errCode: neorpc.ErrUnsupportedStateCode,
|
errCode: neorpc.ErrUnsupportedStateCode,
|
||||||
|
@ -114,7 +114,7 @@ var rpcFunctionsWithUnsupportedStatesTestCases = map[string][]rpcTestCase{
|
||||||
},
|
},
|
||||||
"getstate": {
|
"getstate": {
|
||||||
{
|
{
|
||||||
name: "unknown root/item",
|
name: "unsupported state",
|
||||||
params: `["0000000000000000000000000000000000000000000000000000000000000000", "` + testContractHash + `", "QQ=="]`,
|
params: `["0000000000000000000000000000000000000000000000000000000000000000", "` + testContractHash + `", "QQ=="]`,
|
||||||
fail: true,
|
fail: true,
|
||||||
errCode: neorpc.ErrUnsupportedStateCode,
|
errCode: neorpc.ErrUnsupportedStateCode,
|
||||||
|
@ -122,7 +122,7 @@ var rpcFunctionsWithUnsupportedStatesTestCases = map[string][]rpcTestCase{
|
||||||
},
|
},
|
||||||
"findstates": {
|
"findstates": {
|
||||||
{
|
{
|
||||||
name: "invalid contract",
|
name: "unsupported state",
|
||||||
params: `["` + block20StateRootLE + `", "0xabcdef"]`,
|
params: `["` + block20StateRootLE + `", "0xabcdef"]`,
|
||||||
fail: true,
|
fail: true,
|
||||||
errCode: neorpc.ErrUnsupportedStateCode,
|
errCode: neorpc.ErrUnsupportedStateCode,
|
||||||
|
@ -130,7 +130,7 @@ var rpcFunctionsWithUnsupportedStatesTestCases = map[string][]rpcTestCase{
|
||||||
},
|
},
|
||||||
"invokefunctionhistoric": {
|
"invokefunctionhistoric": {
|
||||||
{
|
{
|
||||||
name: "no params",
|
name: "unsupported state",
|
||||||
params: `[]`,
|
params: `[]`,
|
||||||
fail: true,
|
fail: true,
|
||||||
errCode: neorpc.ErrUnsupportedStateCode,
|
errCode: neorpc.ErrUnsupportedStateCode,
|
||||||
|
|
Loading…
Reference in a new issue