diff --git a/curl_test.go b/curl_test.go deleted file mode 100644 index 48034b8..0000000 --- a/curl_test.go +++ /dev/null @@ -1,18 +0,0 @@ -package curlx_test - -import ( - "context" - "testing" - - "code.yun.ink/open/curlx" -) - -func TestCurlx(t *testing.T) { - p := curlx.CurlParams{} - p.Url = "http://www.baidu.com" - p.Method = "GET" - - resp,code,err := curlx.NewCurlx().Send(context.Background(), &p) - t.Log(resp,code,err) - -} diff --git a/curlx_test.go b/curlx_test.go index 11ca36e..310d361 100644 --- a/curlx_test.go +++ b/curlx_test.go @@ -8,6 +8,16 @@ import ( "testing" ) +func TestCurlx(t *testing.T) { + p := CurlParams{} + p.Url = "http://www.baidu.com" + p.Method = "GET" + + resp, code, err := NewCurlx().Send(context.Background(), &p) + t.Log(resp, code, err) + +} + func TestSendFile(t *testing.T) { file, err := os.Open("./go.mod")