From 6de507b7b57f157ca4ebafc767d277b28db9cb77 Mon Sep 17 00:00:00 2001 From: Mr Talbot Date: Sat, 28 May 2016 20:52:59 +0100 Subject: [PATCH] MockClient.CallRemote now returns nil on success CallRemote was not returning nil on success as it should due to a missing return --- client/mock/mock.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/mock/mock.go b/client/mock/mock.go index 1cc22968..337df041 100644 --- a/client/mock/mock.go +++ b/client/mock/mock.go @@ -123,6 +123,8 @@ func (m *MockClient) CallRemote(ctx context.Context, addr string, req client.Req } v.Set(reflect.ValueOf(r.Response)) + + return nil } return fmt.Errorf("rpc: can't find service %s", req.Method())