We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ddfd26 commit 7aa0999Copy full SHA for 7aa0999
tests/integration/api_health_test.go
@@ -13,16 +13,13 @@ import (
13
14
func TestApiHeatlhCheck(t *testing.T) {
15
defer tests.PrepareTestEnv(t)()
16
- t.Run("Test health-check pass", func(t *testing.T) {
17
- defer tests.PrintCurrentTest(t)()
18
19
- req := NewRequest(t, "GET", "/api/healthz")
20
- resp := MakeRequest(t, req, http.StatusOK)
21
- assert.Contains(t, resp.Header().Values("Cache-Control"), "no-store")
+ req := NewRequest(t, "GET", "/api/healthz")
+ resp := MakeRequest(t, req, http.StatusOK)
+ assert.Contains(t, resp.Header().Values("Cache-Control"), "no-store")
22
23
- var status healthcheck.Response
24
- DecodeJSON(t, resp, &status)
25
- assert.Equal(t, healthcheck.Pass, status.Status)
26
- assert.Equal(t, setting.AppName, status.Description)
27
- })
+ var status healthcheck.Response
+ DecodeJSON(t, resp, &status)
+ assert.Equal(t, healthcheck.Pass, status.Status)
+ assert.Equal(t, setting.AppName, status.Description)
28
}
0 commit comments