Skip to content

Commit

Permalink
refactor: improve mock client
Browse files Browse the repository at this point in the history
  • Loading branch information
w-h-a committed Jul 6, 2024
1 parent 08d53c8 commit 11633de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/mockclient/mock_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (c *mockClient) Call(ctx context.Context, req client.Request, rsp interface

mock, ok := c.responses[req.Service()+":"+req.Method()]
if !ok {
return errorutils.NotFound("mock.client", "service not found")
return errorutils.NotFound("mock.client", "service:method %s:%s not found in responses %+v", req.Service(), req.Method(), c.responses)
}

if mock.Err != nil {
Expand Down

0 comments on commit 11633de

Please sign in to comment.