chore: use http.Status* instead of hard code (#1482)
This commit is contained in:
@@ -15,6 +15,6 @@ func TestPingRoute(t *testing.T) {
|
||||
req, _ := http.NewRequest("GET", "/ping", nil)
|
||||
router.ServeHTTP(w, req)
|
||||
|
||||
assert.Equal(t, 200, w.Code)
|
||||
assert.Equal(t, http.StatusOK, w.Code)
|
||||
assert.Equal(t, "pong", w.Body.String())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user