Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared committed Jul 29, 2021
1 parent bec5a63 commit 960408f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/OpenTelemetry.Tests/Resources/ResourceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void Dispose()
}

[Fact]
public static void CreateResource_NullAttributeCollection()
public void CreateResource_NullAttributeCollection()
{
// Act and Assert
var resource = new Resource(null);
Expand Down Expand Up @@ -486,7 +486,7 @@ public void GetResource_WithServiceNameSetWithTwoEnvVarsAndCode()
Assert.Contains(new KeyValuePair<string, object>("service.name", "from-code"), attributes);
}

private void ClearEnvVars()
private static void ClearEnvVars()
{
Environment.SetEnvironmentVariable(ResourceAttributesEnvVarKey, null);
Environment.SetEnvironmentVariable(ServiceNameEnvVarKey, null);
Expand Down

0 comments on commit 960408f

Please sign in to comment.