Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-07-02 17:36:30 +02:00
committed by Sacha Al Himdani
parent 3c7a27b7ff
commit b1cc17ab26
2 changed files with 5 additions and 10 deletions

View File

@@ -170,6 +170,7 @@ func TestTrustCenter_LogoFileDownloadURL(t *testing.T) {
// redirect) with cache headers, so the stable URL is CDN/browser cacheable.
resp, err := http.Get(downloadURL)
require.NoError(t, err)
defer func() { _ = resp.Body.Close() }()
require.Equal(t, http.StatusOK, resp.StatusCode)
@@ -199,6 +200,7 @@ func TestTrustCenter_LogoFileDownloadURL(t *testing.T) {
revalidateResp, err := http.DefaultClient.Do(revalidateReq)
require.NoError(t, err)
defer func() { _ = revalidateResp.Body.Close() }()
assert.Equal(t, http.StatusNotModified, revalidateResp.StatusCode)
@@ -214,6 +216,7 @@ func TestTrustCenter_LogoFileDownloadURL(t *testing.T) {
sinceResp, err := http.DefaultClient.Do(sinceReq)
require.NoError(t, err)
defer func() { _ = sinceResp.Body.Close() }()
assert.Equal(t, http.StatusNotModified, sinceResp.StatusCode)