Merge pull request #7 from mindlesslcc/fix_rpc_return_value
This commit is contained in:
commit
6463c39726
|
@ -79,7 +79,9 @@ func TestRpc2(t *testing.T) {
|
||||||
c := newTestClient()
|
c := newTestClient()
|
||||||
|
|
||||||
var r func(ids []int) ([]int, error)
|
var r func(ids []int) ([]int, error)
|
||||||
c.MakeRpc("rpc2", &r)
|
if err := c.MakeRpc("rpc2", &r); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
a, e := r(nil)
|
a, e := r(nil)
|
||||||
if e == nil {
|
if e == nil {
|
||||||
|
|
Loading…
Reference in New Issue