Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests] Fix CRLF issues in M.E.Http #52707

Merged

Conversation

radekdoulik
Copy link
Member

@radekdoulik radekdoulik commented May 13, 2021

Fixes: #52008

When running Microsoft.Extensions.Http tests on windows and
targeting Browser, the line ending differs between host and target
systems. Use helper LineEndingsHelper.Normalize method to update
expected strings.

The Browser Environment.NewLine is \n, while windows use \r\n.

Fixes: dotnet#52135

When running `Microsoft.Extensions.Http` tests on windows and
targeting `Browser`, the line ending differs between host and target
systems. Use helper `LineEndingsHelper.Normalize` method to update
expected strings.

The `Browser` Environment.NewLine is `\n`, while windows use `\r\n`.
https://github.com/dotnet/runtime/blob/5bd0edfe860e41bdfd690d3743e730594307292e/src/libraries/System.Private.CoreLib/src/System/Environment.UnixOrBrowser.cs#L51
@radekdoulik radekdoulik added the arch-wasm WebAssembly architecture label May 13, 2021
@radekdoulik radekdoulik requested a review from lewing May 13, 2021 16:08
@ghost
Copy link

ghost commented May 13, 2021

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes: #52135

When running Microsoft.Extensions.Http tests on windows and
targeting Browser, the line ending differs between host and target
systems. Use helper LineEndingsHelper.Normalize method to update
expected strings.

The Browser Environment.NewLine is \n, while windows use \r\n.

Author: radekdoulik
Assignees: -
Labels:

arch-wasm

Milestone: -

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@ghost
Copy link

ghost commented May 23, 2021

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes: #52135

When running Microsoft.Extensions.Http tests on windows and
targeting Browser, the line ending differs between host and target
systems. Use helper LineEndingsHelper.Normalize method to update
expected strings.

The Browser Environment.NewLine is \n, while windows use \r\n.

Author: radekdoulik
Assignees: -
Labels:

arch-wasm, area-Extensions-HttpClientFactory

Milestone: -

Copy link
Member

@CarnaViire CarnaViire left a comment

Choose a reason for hiding this comment

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

LGTM. The linked issue seems wrong though...

@CarnaViire
Copy link
Member

@radekdoulik what is the status of this PR? Is anything blocking you?

@radekdoulik
Copy link
Member Author

@radekdoulik what is the status of this PR? Is anything blocking you?

I didn't notice it was approved, thanks! I will fix the issue link.

@karelz
Copy link
Member

karelz commented Jun 8, 2021

@radekdoulik if it is updated, can you please merge it?

@radekdoulik radekdoulik merged commit 82b46c9 into dotnet:main Jun 10, 2021
@radekdoulik
Copy link
Member Author

Ops, I keep forgetting about it.

radekdoulik added a commit to radekdoulik/runtime that referenced this pull request Jun 23, 2021
lewing pushed a commit that referenced this pull request Jun 24, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jul 10, 2021
@karelz karelz added this to the 6.0.0 milestone Jul 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[wasm] Microsoft.Extensions.Http tests fail on windows
4 participants