Update all deps (#36)
* Update all deps Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org> Co-authored-by: Renovate Bot <bot@renovateapp.com>
This commit is contained in:
@@ -48,7 +48,7 @@ func (e *GithubRspError) Error() string {
|
||||
|
||||
func TestError(t *testing.T) {
|
||||
c := client.NewClientCallOptions(mhttp.NewClient(client.ContentType("application/json"), client.Codec("application/json", jsoncodec.NewCodec())), client.WithAddress("https://api.github.com"))
|
||||
req := c.NewRequest("github", "/dddd", nil)
|
||||
req := c.NewRequest("github", "/dddd", &pb.LookupUserReq{})
|
||||
rsp := &GithubRsp{}
|
||||
errMap := map[string]interface{}{"404": &GithubRspError{}}
|
||||
err := c.Call(context.TODO(), req, rsp, mhttp.Method(http.MethodGet), mhttp.ErrorMap(errMap))
|
||||
@@ -56,7 +56,7 @@ func TestError(t *testing.T) {
|
||||
t.Fatal("request must return non nil err")
|
||||
}
|
||||
if _, ok := err.(*GithubRspError); !ok {
|
||||
t.Fatalf("invalid response received: %T is not *GithubRspError type", err)
|
||||
t.Fatalf("invalid response received: %T is not *GithubRspError type: %#+v", err, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user