From 323d7ad50719e69b5969d059415ba027075232c9 Mon Sep 17 00:00:00 2001 From: Ada Date: Sat, 6 Apr 2024 00:43:22 +0200 Subject: [PATCH] Remove useless t.run --- tests/integration/api_health_test.go | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/tests/integration/api_health_test.go b/tests/integration/api_health_test.go index d351fcd26c..5657f4fd06 100644 --- a/tests/integration/api_health_test.go +++ b/tests/integration/api_health_test.go @@ -13,16 +13,13 @@ import ( func TestApiHeatlhCheck(t *testing.T) { defer tests.PrepareTestEnv(t)() - t.Run("Test health-check pass", func(t *testing.T) { - defer tests.PrintCurrentTest(t)() - req := NewRequest(t, "GET", "/api/healthz") - resp := MakeRequest(t, req, http.StatusOK) - 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") - var status healthcheck.Response - DecodeJSON(t, resp, &status) - assert.Equal(t, healthcheck.Pass, status.Status) - assert.Equal(t, setting.AppName, status.Description) - }) + var status healthcheck.Response + DecodeJSON(t, resp, &status) + assert.Equal(t, healthcheck.Pass, status.Status) + assert.Equal(t, setting.AppName, status.Description) }