chore: Use http constants to replace numbers as parameters

Signed-off-by: xin.li <xin.li@daocloud.io>
This commit is contained in:
xin.li
2023-02-19 20:41:10 +08:00
committed by Benjamin Wang
parent 8e56e2f5ce
commit b17b9c1428
13 changed files with 23 additions and 23 deletions

View File

@ -200,7 +200,7 @@ func TestPutAndGetKeyValue(t *testing.T) {
body := bytes.NewBufferString(wantValue)
cli := srv.Client()
req, err := http.NewRequest("PUT", url, body)
req, err := http.NewRequest(http.MethodPut, url, body)
if err != nil {
t.Fatal(err)
}