From a3551fdfb4021056d90bd74e5fe12447bbc5f1ac Mon Sep 17 00:00:00 2001 From: yedongfu Date: Fri, 16 Jul 2021 11:38:44 +0800 Subject: [PATCH] test resty commented --- common/utils_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/common/utils_test.go b/common/utils_test.go index 85177bb..664f543 100644 --- a/common/utils_test.go +++ b/common/utils_test.go @@ -79,11 +79,11 @@ func TestGin(t *testing.T) { assert.Equal(t, "{\"code\":500,\"message\":\"err1\"}", getResultString("/api/error", strings.NewReader("{}"))) } -func TestResty(t *testing.T) { - resp, err := RestyClient.R().Get("http://taobao.com") - assert.Equal(t, nil, err) - err2 := CatchP(func() { - CheckRestySuccess(resp, err) - }) - assert.NotEqual(t, nil, err2) -} +// func TestResty(t *testing.T) { +// resp, err := RestyClient.R().Get("http://taobao.com") +// assert.Equal(t, nil, err) +// err2 := CatchP(func() { +// CheckRestySuccess(resp, err) +// }) +// assert.NotEqual(t, nil, err2) +// }