chore: Use http constants to replace numbers as parameters
Signed-off-by: xin.li <xin.li@daocloud.io>
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user