1
0
mirror of https://github.com/siddontang/go.git synced 2025-04-24 13:48:52 +08:00

fix rpc test return value bug

This commit is contained in:
liuwenyi 2017-04-10 23:01:57 +08:00
parent 1e9ce2a5ac
commit d2bc1bfd14

View File

@ -79,7 +79,9 @@ func TestRpc2(t *testing.T) {
c := newTestClient()
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)
if e == nil {