Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Yun-Ting committed Aug 16, 2022
1 parent be21431 commit 34c7f9d
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 100 deletions.
17 changes: 0 additions & 17 deletions GrpcGreeter/GrpcGreeter.csproj

This file was deleted.

14 changes: 0 additions & 14 deletions GrpcGreeter/Program.cs

This file was deleted.

21 changes: 0 additions & 21 deletions GrpcGreeter/Protos/greet.proto

This file was deleted.

22 changes: 0 additions & 22 deletions GrpcGreeter/Services/GreeterService.cs

This file was deleted.

8 changes: 0 additions & 8 deletions GrpcGreeter/appsettings.Development.json

This file was deleted.

14 changes: 0 additions & 14 deletions GrpcGreeter/appsettings.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ public static GrpcChannel CreateChannel(this OtlpExporterOptions options)
options.Endpoint,
new GrpcChannelOptions
{
// https://docs.microsoft.com/en-us/aspnet/core/grpc/netstandard?view=aspnetcore-6.0
//https://docs.microsoft.com/en-us/aspnet/core/grpc/netstandard?view=aspnetcore-6.0#net-framework
HttpHandler = new WinHttpHandler(),
#if NET462_OR_GREATER
HttpHandler = new WinHttpHandler(),
#endif
HttpClient = options.HttpClientFactory?.Invoke() ?? throw new InvalidOperationException("OtlpExporterOptions was missing HttpClientFactory or it returned null."),
DisposeHttpClient = true,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void GetHeaders_NoOptionHeaders_ReturnsEmptyHeaders(string optionHeaders)

[Theory]
[InlineData(OtlpExportProtocol.Grpc, typeof(OtlpGrpcTraceExportClient))]
//[InlineData(OtlpExportProtocol.HttpProtobuf, typeof(OtlpHttpTraceExportClient))]
[InlineData(OtlpExportProtocol.HttpProtobuf, typeof(OtlpHttpTraceExportClient))]
public void GetTraceExportClient_SupportedProtocol_ReturnsCorrectExportClient(OtlpExportProtocol protocol, Type expectedExportClientType)
{
if (protocol == OtlpExportProtocol.Grpc && Environment.Version.Major == 3)
Expand Down

0 comments on commit 34c7f9d

Please sign in to comment.