Skip to content

Commit 7aa0999

Browse files
authored
Remove useless t.run
(cherry picked from commit 323d7ad)
1 parent 8ddfd26 commit 7aa0999

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

tests/integration/api_health_test.go

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,13 @@ import (
1313

1414
func TestApiHeatlhCheck(t *testing.T) {
1515
defer tests.PrepareTestEnv(t)()
16-
t.Run("Test health-check pass", func(t *testing.T) {
17-
defer tests.PrintCurrentTest(t)()
1816

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")
17+
req := NewRequest(t, "GET", "/api/healthz")
18+
resp := MakeRequest(t, req, http.StatusOK)
19+
assert.Contains(t, resp.Header().Values("Cache-Control"), "no-store")
2220

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-
})
21+
var status healthcheck.Response
22+
DecodeJSON(t, resp, &status)
23+
assert.Equal(t, healthcheck.Pass, status.Status)
24+
assert.Equal(t, setting.AppName, status.Description)
2825
}

0 commit comments

Comments
 (0)