From 36e71f7cba84911d80c9be94d40bba6e42c95661 Mon Sep 17 00:00:00 2001 From: Geno Date: Wed, 23 Jun 2021 13:42:42 +0200 Subject: [PATCH] test(web/metrics): improve --- web/metrics/main_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/metrics/main_test.go b/web/metrics/main_test.go index 56a490e..8b656a2 100644 --- a/web/metrics/main_test.go +++ b/web/metrics/main_test.go @@ -16,4 +16,9 @@ func TestMetricsLoaded(t *testing.T) { // GET s.Request(http.MethodGet, "/metrics", nil, http.StatusOK, nil) + + UP = func() bool { return false } + + // GET + s.Request(http.MethodGet, "/metrics", nil, http.StatusOK, nil) }