Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Fix failing PostAsyncExpect100Continue_LateForbiddenResponse_Ok - #38742

Merged
wfurt merged 2 commits into
dotnet:masterfrom
krwq:fix_38734
Jun 21, 2019
Merged

Fix failing PostAsyncExpect100Continue_LateForbiddenResponse_Ok#38742
wfurt merged 2 commits into
dotnet:masterfrom
krwq:fix_38734

Conversation

@krwq

@krwq krwq commented Jun 20, 2019

Copy link
Copy Markdown
Member

Fixes: #38734

Seems 3fac6ad has uncovered a test issue.

The problem is that client gets diposed a bit too early causing unexpected errors

@krwq
krwq requested a review from wfurt June 20, 2019 23:10
@wfurt

wfurt commented Jun 20, 2019

Copy link
Copy Markdown
Member

For SendAsync_ConcurentSendReceive_Fail the cleanup is wrapped in try/catch block.

Since we really do not care about the shutdown maybe we can add helper function to close without worrying about failures. That may be easier than add synchronization to every test with abnormal conditions.

@wfurt
wfurt requested a review from a team June 20, 2019 23:17
@krwq

krwq commented Jun 20, 2019

Copy link
Copy Markdown
Member Author

as we discussed offline with @wfurt, I'll add a helper method and review remaining tests for similar issues.

@davidsh davidsh added area-System.Net.Http test bug Problem in test source code (most likely) labels Jun 20, 2019
@davidsh davidsh added this to the 3.0 milestone Jun 20, 2019

@wfurt wfurt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
thanks.

@davidsh
davidsh requested a review from stephentoub June 21, 2019 02:27
@wfurt
wfurt merged commit bff9c7b into dotnet:master Jun 21, 2019
steveharter pushed a commit to steveharter/dotnet_corefx that referenced this pull request Jun 25, 2019
…et#38742)

* PostAsyncExpect100Continue: Keep client alive until server finishes

* replace MRE with ShutdownIgnoringErrorsAsync
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…et/corefx#38742)

* PostAsyncExpect100Continue: Keep client alive until server finishes

* replace MRE with ShutdownIgnoringErrorsAsync


Commit migrated from dotnet/corefx@bff9c7b
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Net.Http test bug Problem in test source code (most likely)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SocketsHttpHandlerTest_Http2 PostAsyncExpect100Continue_LateForbiddenResponse_Ok CI Failure

3 participants