MockClient.CallRemote now returns nil on success

CallRemote was not returning nil on success as it should due to a missing return
This commit is contained in:
Mr Talbot 2016-05-28 20:52:59 +01:00
parent 257333a0a3
commit 6de507b7b5

View File

@ -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())