mirror of
https://github.com/gwoo/goforever.git
synced 2025-09-26 19:41:10 +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))
|
||||
defer ts.Close()
|
||||
url := ts.URL + path
|
||||
b, r, _ := greq.Do(method, url, body)
|
||||
b, r, _ := greq.Do(method, url, nil, body)
|
||||
return b, r
|
||||
}
|
||||
|
Reference in New Issue
Block a user