parent
dbfdfd8e9b
commit
770c8d774c
7 changed files with 74 additions and 0 deletions
|
@ -10,6 +10,7 @@ import (
|
|||
"net/http"
|
||||
"net/http/httptest"
|
||||
"reflect"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
"testing"
|
||||
|
@ -353,6 +354,17 @@ var rpcTestCases = map[string][]rpcTestCase{
|
|||
fail: true,
|
||||
},
|
||||
},
|
||||
"getcommittee": {
|
||||
{
|
||||
params: "[]",
|
||||
result: func(e *executor) interface{} {
|
||||
// it's a test chain, so committee is a sorted standby committee
|
||||
expected := e.chain.GetStandByCommittee()
|
||||
sort.Sort(expected)
|
||||
return &expected
|
||||
},
|
||||
},
|
||||
},
|
||||
"getconnectioncount": {
|
||||
{
|
||||
params: "[]",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue