From d2bc1bfd14fac43a6b2af1a716fc4690c7ea697f Mon Sep 17 00:00:00 2001 From: liuwenyi Date: Mon, 10 Apr 2017 23:01:57 +0800 Subject: [PATCH] fix rpc test return value bug --- rpc/rpc_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpc/rpc_test.go b/rpc/rpc_test.go index fa9a138..ac1b858 100644 --- a/rpc/rpc_test.go +++ b/rpc/rpc_test.go @@ -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 {