From 7feba096622ded2348ca390a16dd1a801681879d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Kie=C5=82kowicz?= Date: Fri, 15 Mar 2024 10:19:13 +0100 Subject: [PATCH] PR feedback - fix paramether name --- .../RequestDataHelperTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/OpenTelemetry.Instrumentation.AspNet.Tests/RequestDataHelperTests.cs b/test/OpenTelemetry.Instrumentation.AspNet.Tests/RequestDataHelperTests.cs index 1226ebcdf9..e1beb3a377 100644 --- a/test/OpenTelemetry.Instrumentation.AspNet.Tests/RequestDataHelperTests.cs +++ b/test/OpenTelemetry.Instrumentation.AspNet.Tests/RequestDataHelperTests.cs @@ -41,11 +41,11 @@ public void MethodMappingWorksForKnownMethods(string method, string expected) [InlineData("get", "GET")] [InlineData("post", "POST")] [InlineData("invalid", "_OTHER")] - public void MethodMappingWorksForEnvironmentVariables(string protocolVersion, string expected) + public void MethodMappingWorksForEnvironmentVariables(string method, string expected) { Environment.SetEnvironmentVariable("OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS", "GET,POST"); var requestHelper = new RequestDataHelper(); - var actual = requestHelper.GetNormalizedHttpMethod(protocolVersion); + var actual = requestHelper.GetNormalizedHttpMethod(method); Assert.Equal(expected, actual); }