Closed
Description
Failing Test(s)
- Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.ServerStreamingTests.GetWithRouteParameter_WriteMultiple_CancellationBefore_CallCanceled
Error Message
Error Message:
Assert.Equal() Failure
↓ (pos 4)
Expected: The application aborted the request.
Actual: The request was aborted or the pipeline has f···
↑ (pos 4)
Stacktrace
Stack Trace:
at Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.ServerStreamingTests.GetWithRouteParameter_WriteMultiple_CancellationBefore_CallCanceled() in /_/src/Grpc/JsonTranscoding/test/Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests/ServerStreamingTests.cs:line 114
--- End of stack trace from previous location ---
Standard Output Messages:
0.079s Microsoft.Extensions.Hosting.Internal.Host - Debug: Hosting starting
0.105s Microsoft.AspNetCore.Hosting.Diagnostics - Debug: Loaded hosting startup assembly IntegrationTestsWebsite
0.112s Microsoft.Extensions.Hosting.Internal.Host - Debug: Hosting started
0.189s Grpc.AspNetCore.Server.Model.Internal.ServiceRouteBuilder - Trace: Discovering gRPC methods for IntegrationTestsWebsite.Infrastructure.DynamicService.
0.191s Grpc.AspNetCore.Server.Model.Internal.BinderServiceMethodProvider - Debug: Could not find bind method for IntegrationTestsWebsite.Infrastructure.DynamicService.
0.192s Microsoft.AspNetCore.Grpc.JsonTranscoding.Internal.Binding.JsonTranscodingServiceMethodProvider - Warning: Could not find bind method for IntegrationTestsWebsite.Infrastructure.DynamicService.
0.201s Microsoft.AspNetCore.Grpc.JsonTranscoding.Internal.Binding.JsonTranscodingProviderServiceBinder - Trace: Found HttpRule mapping. Method SayHello on DynamicService. HttpRule payload: { "get": "/v1/greeter/{name}" }
0.221s Grpc.AspNetCore.Server.Model.Internal.ServiceRouteBuilder - Trace: Added gRPC method 'SayHello' to service 'DynamicService'. Method type: ServerStreaming, HTTP method: , route pattern: '/v1/greeter/{name}'.
0.971s Microsoft.AspNetCore.Hosting.Diagnostics - Information: Request starting HTTP/1.1 GET http://localhost/v1/greeter/test - -
0.974s Microsoft.AspNetCore.HostFiltering.HostFilteringMiddleware - Debug: Wildcard detected, all requests with hosts will be allowed.
0.974s Microsoft.AspNetCore.HostFiltering.HostFilteringMiddleware - Trace: All hosts are allowed.
0.996s Microsoft.AspNetCore.Routing.Matching.DfaMatcher - Debug: 1 candidate(s) found for the request path '/v1/greeter/test'
0.996s Microsoft.AspNetCore.Routing.Matching.DfaMatcher - Debug: Endpoint 'gRPC - /v1/greeter/{name}' with route pattern '/v1/greeter/{name}' is valid for the request path '/v1/greeter/test'
0.997s Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware - Debug: Request matched endpoint 'gRPC - /v1/greeter/{name}'
0.998s Microsoft.AspNetCore.Routing.EndpointMiddleware - Information: Executing endpoint 'gRPC - /v1/greeter/{name}'
1.003s Grpc.AspNetCore.Grpc.JsonTranscoding.ServerCallHandler - Debug: Reading message.
1.006s Grpc.AspNetCore.Grpc.JsonTranscoding.ServerCallHandler - Trace: Received message.
1.014s Grpc.AspNetCore.Grpc.JsonTranscoding.ServerCallHandler - Debug: Sending message.
1.033s Grpc.AspNetCore.Grpc.JsonTranscoding.ServerCallHandler - Trace: Serialized 'IntegrationTestsWebsite.HelloReply'.
1.033s Grpc.AspNetCore.Grpc.JsonTranscoding.ServerCallHandler - Debug: Message sent.
1.099s Grpc.AspNetCore.Grpc.JsonTranscoding.ServerCallHandler - Error: Error when executing service method 'SayHello'.
1.103s Microsoft.AspNetCore.Routing.EndpointMiddleware - Information: Executed endpoint 'gRPC - /v1/greeter/{name}'
1.104s Microsoft.AspNetCore.Hosting.Diagnostics - Information: Request finished HTTP/1.1 GET http://localhost/v1/greeter/test - - - 200 - - 133.9732ms
Logs
None, so including the console logs for the full run
Running '/datadisks/disk1/work/B8F80A35/p/dotnet-cli/dotnet vstest Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.dll -lt'
'/datadisks/disk1/work/B8F80A35/p/dotnet-cli/dotnet vstest Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.dll -lt' completed with exit code '0'
Running non-quarantined tests.
Running '/datadisks/disk1/work/B8F80A35/p/dotnet-cli/dotnet test Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.dll --diag:/datadisks/disk1/work/B8F80A35/w/B03F0988/uploads/vstest.log --logger:xunit --logger:"console;verbosity=normal" --blame "CollectHangDump;TestTimeout=15m" --TestCaseFilter:"Quarantined!=true|Quarantined=false"'
Microsoft (R) Test Execution Command Line Tool Version 17.3.0-preview-20220505-02 (x64)
Copyright (c) Microsoft Corporation. All rights reserved.
Starting test execution, please wait...
Logging Vstest Diagnostics in file: /datadisks/disk1/work/B8F80A35/w/B03F0988/uploads/vstest.log
A total of 1 test files matched the specified pattern.
Data collection : Logging DataCollector Diagnostics in file: /datadisks/disk1/work/B8F80A35/w/B03F0988/uploads/vstest.datacollector.22-05-10_18-34-07_67130_5.log
Logging TestHost Diagnostics in file: /datadisks/disk1/work/B8F80A35/w/B03F0988/uploads/vstest.host.22-05-10_18-34-07_95833_5.log
[xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.4.3+1b45f5407b (64-bit .NET 7.0.0-preview.5.22259.7)
[xUnit.net 00:00:00.62] Discovering: Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests (method display = ClassAndMethod, method display options = None)
[xUnit.net 00:00:00.68] Discovered: Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests (found 15 test cases)
[xUnit.net 00:00:00.69] Starting: Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests (parallel test collections = on, max threads = 2)
Passed AlwaysTestTests.SuccessfulTests.GuaranteedUnquarantinedTest [1 ms]
[xUnit.net 00:00:01.91] Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.ServerStreamingTests.GetWithRouteParameter_WriteMultiple_CancellationBefore_CallCanceled [FAIL]
[xUnit.net 00:00:01.92] Assert.Equal() Failure
[xUnit.net 00:00:01.92] ↓ (pos 4)
[xUnit.net 00:00:01.92] Expected: The application aborted the request.
[xUnit.net 00:00:01.93] Actual: The request was aborted or the pipeline has f···
[xUnit.net 00:00:01.93] ↑ (pos 4)
[xUnit.net 00:00:01.93] Stack Trace:
[xUnit.net 00:00:01.93] /_/src/Grpc/JsonTranscoding/test/Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests/ServerStreamingTests.cs(114,0): at Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.ServerStreamingTests.GetWithRouteParameter_WriteMultiple_CancellationBefore_CallCanceled()
[xUnit.net 00:00:01.93] --- End of stack trace from previous location ---
[xUnit.net 00:00:01.93] Output:
[xUnit.net 00:00:01.94] 0.079s Microsoft.Extensions.Hosting.Internal.Host - Debug: Hosting starting
[xUnit.net 00:00:01.94] 0.105s Microsoft.AspNetCore.Hosting.Diagnostics - Debug: Loaded hosting startup assembly IntegrationTestsWebsite
[xUnit.net 00:00:01.95] 0.112s Microsoft.Extensions.Hosting.Internal.Host - Debug: Hosting started
[xUnit.net 00:00:01.95] 0.189s Grpc.AspNetCore.Server.Model.Internal.ServiceRouteBuilder - Trace: Discovering gRPC methods for IntegrationTestsWebsite.Infrastructure.DynamicService.
[xUnit.net 00:00:01.95] 0.191s Grpc.AspNetCore.Server.Model.Internal.BinderServiceMethodProvider - Debug: Could not find bind method for IntegrationTestsWebsite.Infrastructure.DynamicService.
[xUnit.net 00:00:01.95] 0.192s Microsoft.AspNetCore.Grpc.JsonTranscoding.Internal.Binding.JsonTranscodingServiceMethodProvider - Warning: Could not find bind method for IntegrationTestsWebsite.Infrastructure.DynamicService.
[xUnit.net 00:00:01.95] 0.201s Microsoft.AspNetCore.Grpc.JsonTranscoding.Internal.Binding.JsonTranscodingProviderServiceBinder - Trace: Found HttpRule mapping. Method SayHello on DynamicService. HttpRule payload: { "get": "/v1/greeter/{name}" }
[xUnit.net 00:00:01.95] 0.221s Grpc.AspNetCore.Server.Model.Internal.ServiceRouteBuilder - Trace: Added gRPC method 'SayHello' to service 'DynamicService'. Method type: ServerStreaming, HTTP method: , route pattern: '/v1/greeter/{name}'.
[xUnit.net 00:00:01.95] 0.971s Microsoft.AspNetCore.Hosting.Diagnostics - Information: Request starting HTTP/1.1 GET http://localhost/v1/greeter/test - -
[xUnit.net 00:00:01.95] 0.974s Microsoft.AspNetCore.HostFiltering.HostFilteringMiddleware - Debug: Wildcard detected, all requests with hosts will be allowed.
[xUnit.net 00:00:01.95] 0.974s Microsoft.AspNetCore.HostFiltering.HostFilteringMiddleware - Trace: All hosts are allowed.
[xUnit.net 00:00:01.95] 0.996s Microsoft.AspNetCore.Routing.Matching.DfaMatcher - Debug: 1 candidate(s) found for the request path '/v1/greeter/test'
[xUnit.net 00:00:01.95] 0.996s Microsoft.AspNetCore.Routing.Matching.DfaMatcher - Debug: Endpoint 'gRPC - /v1/greeter/{name}' with route pattern '/v1/greeter/{name}' is valid for the request path '/v1/greeter/test'
[xUnit.net 00:00:01.95] 0.997s Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware - Debug: Request matched endpoint 'gRPC - /v1/greeter/{name}'
[xUnit.net 00:00:01.95] 0.998s Microsoft.AspNetCore.Routing.EndpointMiddleware - Information: Executing endpoint 'gRPC - /v1/greeter/{name}'
[xUnit.net 00:00:01.95] 1.003s Grpc.AspNetCore.Grpc.JsonTranscoding.ServerCallHandler - Debug: Reading message.
[xUnit.net 00:00:01.95] 1.006s Grpc.AspNetCore.Grpc.JsonTranscoding.ServerCallHandler - Trace: Received message.
[xUnit.net 00:00:01.95] 1.014s Grpc.AspNetCore.Grpc.JsonTranscoding.ServerCallHandler - Debug: Sending message.
[xUnit.net 00:00:01.95] 1.033s Grpc.AspNetCore.Grpc.JsonTranscoding.ServerCallHandler - Trace: Serialized 'IntegrationTestsWebsite.HelloReply'.
[xUnit.net 00:00:01.95] 1.033s Grpc.AspNetCore.Grpc.JsonTranscoding.ServerCallHandler - Debug: Message sent.
[xUnit.net 00:00:01.95] 1.099s Grpc.AspNetCore.Grpc.JsonTranscoding.ServerCallHandler - Error: Error when executing service method 'SayHello'.
[xUnit.net 00:00:01.95] 1.103s Microsoft.AspNetCore.Routing.EndpointMiddleware - Information: Executed endpoint 'gRPC - /v1/greeter/{name}'
[xUnit.net 00:00:01.95] 1.104s Microsoft.AspNetCore.Hosting.Diagnostics - Information: Request finished HTTP/1.1 GET http://localhost/v1/greeter/test - - - 200 - - 133.9732ms
Passed Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.UnaryTests.Request_UnsupportedCharset_Error(charset: "UTF-7", errorMessage: "InvalidOperationException: Unable to read the requ"...) [1 s]
Failed Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.ServerStreamingTests.GetWithRouteParameter_WriteMultiple_CancellationBefore_CallCanceled [1 s]
Error Message:
Assert.Equal() Failure
↓ (pos 4)
Expected: The application aborted the request.
Actual: The request was aborted or the pipeline has f···
↑ (pos 4)
Stack Trace:
at Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.ServerStreamingTests.GetWithRouteParameter_WriteMultiple_CancellationBefore_CallCanceled() in /_/src/Grpc/JsonTranscoding/test/Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests/ServerStreamingTests.cs:line 114
--- End of stack trace from previous location ---
Standard Output Messages:
0.079s Microsoft.Extensions.Hosting.Internal.Host - Debug: Hosting starting
0.105s Microsoft.AspNetCore.Hosting.Diagnostics - Debug: Loaded hosting startup assembly IntegrationTestsWebsite
0.112s Microsoft.Extensions.Hosting.Internal.Host - Debug: Hosting started
0.189s Grpc.AspNetCore.Server.Model.Internal.ServiceRouteBuilder - Trace: Discovering gRPC methods for IntegrationTestsWebsite.Infrastructure.DynamicService.
0.191s Grpc.AspNetCore.Server.Model.Internal.BinderServiceMethodProvider - Debug: Could not find bind method for IntegrationTestsWebsite.Infrastructure.DynamicService.
0.192s Microsoft.AspNetCore.Grpc.JsonTranscoding.Internal.Binding.JsonTranscodingServiceMethodProvider - Warning: Could not find bind method for IntegrationTestsWebsite.Infrastructure.DynamicService.
0.201s Microsoft.AspNetCore.Grpc.JsonTranscoding.Internal.Binding.JsonTranscodingProviderServiceBinder - Trace: Found HttpRule mapping. Method SayHello on DynamicService. HttpRule payload: { "get": "/v1/greeter/{name}" }
0.221s Grpc.AspNetCore.Server.Model.Internal.ServiceRouteBuilder - Trace: Added gRPC method 'SayHello' to service 'DynamicService'. Method type: ServerStreaming, HTTP method: , route pattern: '/v1/greeter/{name}'.
0.971s Microsoft.AspNetCore.Hosting.Diagnostics - Information: Request starting HTTP/1.1 GET http://localhost/v1/greeter/test - -
0.974s Microsoft.AspNetCore.HostFiltering.HostFilteringMiddleware - Debug: Wildcard detected, all requests with hosts will be allowed.
0.974s Microsoft.AspNetCore.HostFiltering.HostFilteringMiddleware - Trace: All hosts are allowed.
0.996s Microsoft.AspNetCore.Routing.Matching.DfaMatcher - Debug: 1 candidate(s) found for the request path '/v1/greeter/test'
0.996s Microsoft.AspNetCore.Routing.Matching.DfaMatcher - Debug: Endpoint 'gRPC - /v1/greeter/{name}' with route pattern '/v1/greeter/{name}' is valid for the request path '/v1/greeter/test'
0.997s Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware - Debug: Request matched endpoint 'gRPC - /v1/greeter/{name}'
0.998s Microsoft.AspNetCore.Routing.EndpointMiddleware - Information: Executing endpoint 'gRPC - /v1/greeter/{name}'
1.003s Grpc.AspNetCore.Grpc.JsonTranscoding.ServerCallHandler - Debug: Reading message.
1.006s Grpc.AspNetCore.Grpc.JsonTranscoding.ServerCallHandler - Trace: Received message.
1.014s Grpc.AspNetCore.Grpc.JsonTranscoding.ServerCallHandler - Debug: Sending message.
1.033s Grpc.AspNetCore.Grpc.JsonTranscoding.ServerCallHandler - Trace: Serialized 'IntegrationTestsWebsite.HelloReply'.
1.033s Grpc.AspNetCore.Grpc.JsonTranscoding.ServerCallHandler - Debug: Message sent.
1.099s Grpc.AspNetCore.Grpc.JsonTranscoding.ServerCallHandler - Error: Error when executing service method 'SayHello'.
1.103s Microsoft.AspNetCore.Routing.EndpointMiddleware - Information: Executed endpoint 'gRPC - /v1/greeter/{name}'
1.104s Microsoft.AspNetCore.Hosting.Diagnostics - Information: Request finished HTTP/1.1 GET http://localhost/v1/greeter/test - - - 200 - - 133.9732ms
Passed Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.ServerStreamingTests.GetWithRouteParameter_WriteMultiple_SuccessResult [17 ms]
Passed Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.UnaryTests.Request_UnsupportedCharset_Error(charset: "FAKE", errorMessage: "InvalidOperationException: Unable to read the requ"...) [12 ms]
Passed Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.ServerStreamingTests.GetWithRouteParameter_WriteOne_SuccessResult [15 ms]
Passed Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.UnaryTests.GetWithRouteParameter_MatchUrl_SuccessResult [37 ms]
Passed Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.UnaryTests.WriteResponseHeadersAsync_SendHeaders_HeadersSentBeforeResult [26 ms]
Passed Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.UnaryTests.Request_SupportedCharset_Success(charset: null) [18 ms]
Passed Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.UnaryTests.Request_SupportedCharset_Success(charset: "utf-8") [4 ms]
[xUnit.net 00:00:02.09] Finished: Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests
Data collector 'Blame' message: All tests finished running, Sequence file will not be generated.
Passed Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.UnaryTests.Request_SupportedCharset_Success(charset: "utf-16") [2 ms]
Passed Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.UnaryTests.Request_SupportedCharset_Success(charset: "latin1") [6 ms]
Passed Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.UnaryTests.WriteResponseHeadersAsync_CallTwice_Error [10 ms]
Passed Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests.UnaryTests.AuthContext_BasicRequest_Unauthenticated [8 ms]
Results File: /datadisks/disk1/work/B8F80A35/w/B03F0988/e/TestResults/TestResults.xml
Test Run Failed.
Total tests: 14
Passed: 13
Failed: 1
Total time: 2.5946 Seconds