X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FMetricsPageTest.kt;h=269aafe76f4a901174de18c6187900fb02fe01fc;hb=529da3428d7f6f6e2e418ff8a9348bfddefa63f2;hp=b727909f2bb499168184ac84c4e6d8823689f599;hpb=7aa1997cc7aed40c12017c417ece3e03815e1d28;p=Sone.git diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/MetricsPageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/MetricsPageTest.kt index b727909..269aafe 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/MetricsPageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/MetricsPageTest.kt @@ -69,6 +69,13 @@ class MetricsPageTest : WebPageTest() { } @Test + fun `metrics page lists stats about sone insert durations`() { + createHistogram("sone.insert.duration") + page.handleRequest(soneRequest, templateContext) + verifyHistogram("soneInsertDuration") + } + + @Test fun `metrics page delivers correct histogram size`() { val histogram = metricRegistry.histogram("sone.parsing.duration") (0..4000).forEach(histogram::update)