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
sincerefly committed Jan 17, 2024
1 parent ef23e68 commit 2015ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/requests/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestPost(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)
}
fmt.Println(string(data))
Expand Down

0 comments on commit 2015ecb

Please sign in to comment.