From 80445b5b78c92341b7e911deae450bd57ed85ff6 Mon Sep 17 00:00:00 2001 From: Mikayla Toffler Date: Wed, 30 Oct 2024 15:49:43 -0400 Subject: [PATCH] more cleanup --- tests/parametric/test_otel_span_methods.py | 4 +++- utils/build/docker/golang/parametric/helpers.go | 8 ++++---- utils/parametric/headers.py | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/parametric/test_otel_span_methods.py b/tests/parametric/test_otel_span_methods.py index f290df9ef5..27fb59744e 100644 --- a/tests/parametric/test_otel_span_methods.py +++ b/tests/parametric/test_otel_span_methods.py @@ -74,7 +74,9 @@ def test_otel_set_service_name(self, test_agent, test_library): assert root_span["service"] == "new_service" @missing_feature(context.library < "python@2.9.0", reason="Implemented in 2.9.0") - @missing_feature(context.library < "golang@1.65.0", reason="Implemented in 1.65.0") + # TODO: Revert this to 0 { switch tt := t[0].(type) { diff --git a/utils/parametric/headers.py b/utils/parametric/headers.py index 665010caa9..5fa8798122 100644 --- a/utils/parametric/headers.py +++ b/utils/parametric/headers.py @@ -1,4 +1,4 @@ def make_single_request_and_get_inject_headers(test_library, headers): with test_library.start_span(name="name", service="service", resource="resource", http_headers=headers,) as span: headers = test_library.inject_headers(span.span_id) - return {k.lower(): v for k, v in headers} + return {k.lower(): v for k, v in headers.items()} if headers else {}