rpc/server: remove debug fmt.Println()
from tests
This commit is contained in:
parent
3ccf19fc1e
commit
45a95b5242
1 changed files with 0 additions and 3 deletions
|
@ -984,9 +984,7 @@ func testRPCProtocol(t *testing.T, doRPCCall func(string, string, *testing.T) []
|
||||||
|
|
||||||
rpc := fmt.Sprintf(`{"jsonrpc": "2.0", "id": 1, "method": "getproof", "params": ["%s", "%s", "%x"]}`,
|
rpc := fmt.Sprintf(`{"jsonrpc": "2.0", "id": 1, "method": "getproof", "params": ["%s", "%s", "%x"]}`,
|
||||||
r.Root.StringLE(), testContractHash, []byte("testkey"))
|
r.Root.StringLE(), testContractHash, []byte("testkey"))
|
||||||
fmt.Println(rpc)
|
|
||||||
body := doRPCCall(rpc, httpSrv.URL, t)
|
body := doRPCCall(rpc, httpSrv.URL, t)
|
||||||
fmt.Println(string(body))
|
|
||||||
rawRes := checkErrGetResult(t, body, false)
|
rawRes := checkErrGetResult(t, body, false)
|
||||||
res := new(result.GetProof)
|
res := new(result.GetProof)
|
||||||
require.NoError(t, json.Unmarshal(rawRes, res))
|
require.NoError(t, json.Unmarshal(rawRes, res))
|
||||||
|
@ -1008,7 +1006,6 @@ func testRPCProtocol(t *testing.T, doRPCCall func(string, string, *testing.T) []
|
||||||
t.Run("getstateroot", func(t *testing.T) {
|
t.Run("getstateroot", func(t *testing.T) {
|
||||||
testRoot := func(t *testing.T, p string) {
|
testRoot := func(t *testing.T, p string) {
|
||||||
rpc := fmt.Sprintf(`{"jsonrpc": "2.0", "id": 1, "method": "getstateroot", "params": [%s]}`, p)
|
rpc := fmt.Sprintf(`{"jsonrpc": "2.0", "id": 1, "method": "getstateroot", "params": [%s]}`, p)
|
||||||
fmt.Println(rpc)
|
|
||||||
body := doRPCCall(rpc, httpSrv.URL, t)
|
body := doRPCCall(rpc, httpSrv.URL, t)
|
||||||
rawRes := checkErrGetResult(t, body, false)
|
rawRes := checkErrGetResult(t, body, false)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue