From a9998681f9744c45275189d9f23f7ff5bf173257 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Mon, 12 Oct 2026 06:58:48 -0400 Subject: [PATCH] test(core): the +Inf bucket is its le label, not its value (#5667) Co-Authored-By: Claude Opus 5.5 --- tests/core/test_prometheus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/core/test_prometheus.py b/tests/core/test_prometheus.py index e7cf72b..2f6c239 100644 --- a/tests/core/test_prometheus.py +++ b/tests/core/test_prometheus.py @@ -69,7 +69,7 @@ rpc_count 30 assert [s.name for s in fams["req_seconds"].samples] == [ "req_seconds_bucket", "req_seconds_bucket", "req_seconds_sum", "req_seconds_count", ] - assert math.isinf(fams["req_seconds"].samples[1].value) + assert fams["req_seconds"].samples[1].label_dict() == {"le": "+Inf"} assert [s.name for s in fams["rpc"].samples] == ["rpc", "rpc_sum", "rpc_count"]