Skip to content

Commit

Permalink
style: replace 200 OK with http.StatusOK
Browse files Browse the repository at this point in the history
  • Loading branch information
Xudong Liu committed Jan 17, 2024
1 parent ae2038e commit ef23e68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/requests/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"fmt"
"log"
"net/http"
"testing"
)

Expand All @@ -14,7 +15,7 @@ func TestGet(t *testing.T) {
if err != nil {
log.Println(err.Error())
}
if statusCode != 200 {
if statusCode != http.StatusOK {
t.Errorf("Get method expected 200 OK, but %d got", statusCode)
}
}
Expand Down

0 comments on commit ef23e68

Please sign in to comment.