mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-28 23:08:26 +00:00
chore(lint): linting the codebase (#4668)
Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
@@ -139,9 +139,12 @@ func TestHealthz(t *testing.T) {
|
||||
req, _ := http.NewRequest("GET", "/healthz", bytes.NewBuffer(nil))
|
||||
w := httptest.NewRecorder()
|
||||
s.Healthz(w, req)
|
||||
Equals(t, http.StatusOK, w.Result().StatusCode)
|
||||
body, _ := io.ReadAll(w.Result().Body)
|
||||
Equals(t, "application/json", w.Result().Header["Content-Type"][0])
|
||||
|
||||
resp := w.Result()
|
||||
defer resp.Body.Close()
|
||||
Equals(t, http.StatusOK, resp.StatusCode)
|
||||
body, _ := io.ReadAll(resp.Body)
|
||||
Equals(t, "application/json", resp.Header["Content-Type"][0])
|
||||
Equals(t,
|
||||
`{
|
||||
"status": "ok"
|
||||
|
||||
Reference in New Issue
Block a user