Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-07-22 12:54:40 +02:00
parent 121d4dcf93
commit 45c45ac5a0

View File

@@ -43,6 +43,7 @@ func TestNewMetrics_SharedRegistererDoesNotPanic(t *testing.T) {
// A second ACMEService sharing the registerer re-registers fixed-name
// collectors; this must reuse the existing ones instead of panicking.
var second *metrics
require.NotPanics(t, func() {
second = newMetrics(registerer)
})