Adjust the import package order and use http library variables (#9587)

Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
This commit is contained in:
Fish-pro 2023-02-16 22:05:40 +08:00 committed by GitHub
parent fbdbc24a42
commit 1cdd61fb94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 7 deletions

View file

@ -62,7 +62,7 @@ func TestConfigureDynamically(t *testing.T) {
Handler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusCreated)
if r.Method != "POST" {
if r.Method != http.MethodPost {
t.Errorf("expected a 'POST' request, got '%s'", r.Method)
}
@ -222,7 +222,7 @@ func TestConfigureCertificates(t *testing.T) {
Handler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusCreated)
if r.Method != "POST" {
if r.Method != http.MethodPost {
t.Errorf("expected a 'POST' request, got '%s'", r.Method)
}