aboutsummaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-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) {