Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Add test for ExpectContinue with no content #30065

Merged
merged 2 commits into from
Jun 2, 2018

Conversation

stephentoub
Copy link
Member

[Fact]
public async Task GetAsync_ExpectContinueTrue_NoContent_StillSendsHeader()
{
if (IsNetfxHandler)
Copy link
Contributor

@davidsh davidsh Jun 1, 2018

Choose a reason for hiding this comment

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

Why use the 'if' instead of SkipOnTargetFramework(...FullFramework) ?

I know that we use IsCurlHandler, IsWinHttpHandler, UseSocketsHttpHandler in the 'if' because we can't use SkipOnTargetFramework for those things. But for this that just skips on NETFX, maybe it would be better to use that?

Copy link
Member Author

Choose a reason for hiding this comment

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

Makes sense. Will change.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, have you tested UAP? It doesn't support Expect: 100-continue. Not sure what it does if you manually put that header on it.

I recently got the UAP tests to run clean so I wouldn't want this new test to regress things. UAP tests don't run in CI right now (only the test source is built). So, you would need to run the tests on your dev box.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not set up to run them right now. Would you prefer I mark it as skipped right now on uwp or submit without that?

Copy link
Contributor

Choose a reason for hiding this comment

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

How about mark it against my current umbrella UAP test issue?

[ActiveIssue(29802, TargetFrameworkMonikers.Uap)]

@stephentoub stephentoub merged commit 3ae01e9 into dotnet:master Jun 2, 2018
@stephentoub stephentoub deleted the expectcontinue branch June 2, 2018 12:58
@karelz karelz added this to the 3.0 milestone Jun 2, 2018
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Add test for ExpectContinue with no content

* Address PR feedback


Commit migrated from dotnet/corefx@3ae01e9
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants