From dfa95e4f050edddcbb4e7fbcf758f227146c0738 Mon Sep 17 00:00:00 2001 From: yucheng Date: Wed, 28 Oct 2026 02:12:46 -0700 Subject: [PATCH] test(otel): count the collector's spans with one comprehension clause --- tests/unit/integrations/otel/test_otel_v2_destinations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/integrations/otel/test_otel_v2_destinations.py b/tests/unit/integrations/otel/test_otel_v2_destinations.py index 3fed1801b21..79a345c5c08 100644 --- a/tests/unit/integrations/otel/test_otel_v2_destinations.py +++ b/tests/unit/integrations/otel/test_otel_v2_destinations.py @@ -3556,7 +3556,7 @@ class TestLangfuseTenantOnly: emit(logger.tracer_provider) logger.tracer_provider.force_flush() - assert [span.name for _, exporter in capture.built for span in exporter.get_finished_spans()] == ["chat gpt-4"] + assert sum(len(exporter.get_finished_spans()) for _, exporter in capture.built) == 1 def test_a_key_destinations_logger_is_reused_by_later_requests_without_a_destination( self, monkeypatch: pytest.MonkeyPatch