mirror of
https://github.com/gwoo/goforever.git
synced 2025-11-02 03:12:37 +08:00
fix selftest errors
This commit is contained in:
@@ -55,6 +55,6 @@ func newTestResponse(method string, path string, body io.Reader) ([]byte, *http.
|
|||||||
ts := httptest.NewServer(http.HandlerFunc(Handler))
|
ts := httptest.NewServer(http.HandlerFunc(Handler))
|
||||||
defer ts.Close()
|
defer ts.Close()
|
||||||
url := ts.URL + path
|
url := ts.URL + path
|
||||||
b, r, _ := greq.Do(method, url, body)
|
b, r, _ := greq.Do(method, url, nil, body)
|
||||||
return b, r
|
return b, r
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user