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:
parent
257333a0a3
commit
6de507b7b5
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user