Add debug data to help diagnose HTTP2 test failure (dotnet/corefx#38345)
authorStephen Toub <stoub@microsoft.com>
Fri, 7 Jun 2019 20:09:38 +0000 (16:09 -0400)
committerGitHub <noreply@github.com>
Fri, 7 Jun 2019 20:09:38 +0000 (16:09 -0400)
commitb585c84595ae6d385b98194fcb5dd55b9339c12d
tree9e3c7b2f1213d4f248b71fbfef9b2ba75d8a04c1
parent2ef5c32f8d860503060f28807d5689547f12c78e
Add debug data to help diagnose HTTP2 test failure (dotnet/corefx#38345)

The GoAwayFrame_AbortAllPendingStreams_StreamFailWithExpectedException test has been frequently hanging on some Linux distros.  This adds some diagnostics to help track it down in CI: every minute, it'll dump out the fields of the async state machine, which if nothing else will let us see which await it's stuck on and what is the state of each of the tasks.

Commit migrated from https://github.com/dotnet/corefx/commit/410a162f68eb319e8066ac7bf2d7bcd6e2ce47d0
src/libraries/Common/tests/System/Threading/Tasks/GetStateMachineData.cs [new file with mode: 0644]
src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http2.cs
src/libraries/System.Net.Http/tests/FunctionalTests/System.Net.Http.Functional.Tests.csproj