Skip to content

Commit c93e6ca

Browse files
Remove non-ASCII dash (#4758)
Use an ASCII dash for the test. Spotted in Visual Studio Code while working on #4756.
1 parent ca6051a commit c93e6ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/OpenTelemetry.AutoInstrumentation.Tests/Configurations/FileBased/Parser/ParserResourceTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@ public void Parse_FullConfigYaml_ShouldPopulateModelCorrectly()
9090
public void Parse_EnvVarYaml_ShouldPopulateModelCompletely()
9191
{
9292
Environment.SetEnvironmentVariable("OTEL_SDK_DISABLED", "true");
93-
Environment.SetEnvironmentVariable("OTEL_SERVICE_NAME", "myservice");
93+
Environment.SetEnvironmentVariable("OTEL_SERVICE_NAME", "my-service");
9494
Environment.SetEnvironmentVariable("OTEL_RESOURCE_ATTRIBUTES", "key=value");
9595

9696
var config = YamlParser.ParseYaml<YamlConfiguration>("Configurations/FileBased/Files/TestResourceFileEnvVars.yaml");
9797

9898
Assert.Equal("1.0-rc.1", config.FileFormat);
9999
var serviceAttr = config.Resource?.Attributes?.First(a => a.Name == "service.name");
100100
Assert.NotNull(serviceAttr);
101-
Assert.Equal("myservice", serviceAttr.Value);
101+
Assert.Equal("my-service", serviceAttr.Value);
102102
}
103103
}

0 commit comments

Comments
 (0)