summaryrefslogtreecommitdiff
path: root/testing/microprom/handler_test.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-08-18 13:40:20 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-08-18 13:40:20 +0200
commita3ccdd9f491c20771cfda343ebebd4b5d0ea6602 (patch)
treef0ad530dd072c55c6f46dfea23af993fb31333d4 /testing/microprom/handler_test.go
parent5d17264c8ab8042042162f3b968557aabc4976b3 (diff)
downloadgo-gg-a3ccdd9f491c20771cfda343ebebd4b5d0ea6602.tar.gz
test coverage for microprom
Diffstat (limited to 'testing/microprom/handler_test.go')
-rw-r--r--testing/microprom/handler_test.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/testing/microprom/handler_test.go b/testing/microprom/handler_test.go
index 6aa60f0..93027e3 100644
--- a/testing/microprom/handler_test.go
+++ b/testing/microprom/handler_test.go
@@ -76,12 +76,6 @@ func TestHandlerFunctionallyIdenticalToPromhttp(t *testing.T) {
body2, headers2 = getMetrics(t, h2, http.Header{"Accept": {"application/openmetrics-text; version=1.0.0"}})
assert.Equal(t, strings.Split(body1, "\n"), strings.Split(body2, "\n"))
assert.Equal(t, headers1, headers2)
-
- // test invalid Accept header
- body1, headers1 = getMetrics(t, h1, http.Header{"Accept": {"image/*"}})
- body2, headers2 = getMetrics(t, h2, http.Header{"Accept": {"image/*"}})
- assert.Equal(t, strings.Split(body1, "\n"), strings.Split(body2, "\n"))
- assert.Equal(t, headers1, headers2)
}
func getMetrics(t *testing.T, h http.Handler, requestHeaders http.Header) (responseBody string, responseHeaders http.Header) {