chore(server): repair Test_MountableRouter_PrefixesPuts to use http

pull/5610/head
Pavel Zavora 2020-11-26 12:00:17 +01:00
parent f3bde5d8ac
commit 9c789f50e0
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ func Test_MountableRouter_PrefixesPuts(t *testing.T) {
ts := httptest.NewServer(mr)
defer ts.Close()
req := httptest.NewRequest(http.MethodPut, ts.URL+"/chronograf/doc", strings.NewReader(expected))
req, _ := http.NewRequest(http.MethodPut, ts.URL+"/chronograf/doc", strings.NewReader(expected))
req.Header.Set("Content-Type", "text/plain; charset=utf-8")
req.Header.Set("Content-Length", fmt.Sprintf("%d", len(expected)))
req.RequestURI = ""