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:
renovate[bot]
2021-03-24 11:12:31 +03:00
committed by GitHub
parent fc55d9e47e
commit 91cbd0a40e
3 changed files with 29 additions and 17 deletions

View File

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