mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-21 23:29:38 +00:00
rpcclient: fix getpeers test
Signed-off-by: edgedlt <edgedlt@protonmail.com>
This commit is contained in:
parent
aab2620548
commit
ba4ebbd107
1 changed files with 1 additions and 1 deletions
|
@ -568,7 +568,7 @@ var rpcClientTestCases = map[string][]rpcClientTestCase{
|
|||
invoke: func(c *Client) (any, error) {
|
||||
return c.GetPeers()
|
||||
},
|
||||
serverResponse: `{"id":1,"jsonrpc":"2.0","result":{"unconnected":[{"address":"172.200.0.1","port":20333}],"connected":[{"address":"127.0.0.1","port":20335}],"bad":[{"address":"172.200.0.254","port":20332}]}}`,
|
||||
serverResponse: `{"id":1,"jsonrpc":"2.0","result":{"unconnected":[{"address":"172.200.0.1","port":20333}],"connected":[{"address":"127.0.0.1","port":20335, "useragent":"/NEO-GO:0.106.2/", "lastknownheight":1000}],"bad":[{"address":"172.200.0.254","port":20332}]}}`,
|
||||
result: func(c *Client) any {
|
||||
|
||||
return &result.GetPeers{
|
||||
|
|
Loading…
Reference in a new issue