Skip to content

Commit

Permalink
fix compilation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Kielek committed Feb 7, 2022
1 parent 2edca30 commit 5c7bc1d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ public void OtlpExporterOptions_SetterOverridesEnvironmentVariable()
public void OtlpExporterOptions_ProtocolSetterDoesNotOverrideCustomEndpointFromEnvVariables()
{
Environment.SetEnvironmentVariable(OtlpExporterOptions.EndpointEnvVarName, "http://test:8888");

var options = new OtlpExporterOptions {Protocol = OtlpExportProtocol.Grpc};
var options = new OtlpExporterOptions { Protocol = OtlpExportProtocol.Grpc };

Assert.Equal(new Uri("http://test:8888"), options.Endpoint);
Assert.Equal(OtlpExportProtocol.Grpc, options.Protocol);
Expand All @@ -131,7 +131,7 @@ public void OtlpExporterOptions_ProtocolSetterDoesNotOverrideCustomEndpointFromE
[Fact]
public void OtlpExporterOptions_ProtocolSetterDoesNotOverrideCustomEndpointFromSetter()
{
var options = new OtlpExporterOptions {Endpoint = new Uri("http://test:8888"), Protocol = OtlpExportProtocol.Grpc};
var options = new OtlpExporterOptions { Endpoint = new Uri("http://test:8888"), Protocol = OtlpExportProtocol.Grpc };

Assert.Equal(new Uri("http://test:8888"), options.Endpoint);
Assert.Equal(OtlpExportProtocol.Grpc, options.Protocol);
Expand Down

0 comments on commit 5c7bc1d

Please sign in to comment.