Skip to content

Conversation

@MihaZupan
Copy link
Member

Effectively all tests here were in OuterLoop/disabled, even those that were not hitting any servers.

This PR:

  • Replaces the Echo remote server with loopback
  • Removes race conditions & busy waits (replaces SpinWait.SpinUntil with SemaphoreSlim where needed)
  • Fixes some tests to test what the name suggests (e.g. Hierarchical format wasn't being tested)
  • Flows UseVersion, TestAsync across tests
  • Enables HTTP/2 tests

Fixes #23167 (re-enables the tests disabled against it)

@MihaZupan MihaZupan added this to the 6.0.0 milestone Jun 8, 2021
@MihaZupan MihaZupan requested a review from a team June 8, 2021 14:11
@ghost
Copy link

ghost commented Jun 8, 2021

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

Issue Details

Effectively all tests here were in OuterLoop/disabled, even those that were not hitting any servers.

This PR:

  • Replaces the Echo remote server with loopback
  • Removes race conditions & busy waits (replaces SpinWait.SpinUntil with SemaphoreSlim where needed)
  • Fixes some tests to test what the name suggests (e.g. Hierarchical format wasn't being tested)
  • Flows UseVersion, TestAsync across tests
  • Enables HTTP/2 tests

Fixes #23167 (re-enables the tests disabled against it)

Author: MihaZupan
Assignees: -
Labels:

area-System.Net.Http

Milestone: 6.0.0

Copy link
Contributor

@geoffkizer geoffkizer left a comment

Choose a reason for hiding this comment

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

Generally looks good -- nice to see this get modernized. A few small issues or things to consider.

SemaphoreSlim => TCS, Guid => nosuchhost.invalid, Http20 => Http2
@ghost
Copy link

ghost commented Jun 8, 2021

Hello @MihaZupan!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

This pull request was closed.
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.

Test failure: System.Net.Http.Functional.Tests.DiagnosticsTest / SendAsync_ExpectedDiagnosticCancelledLogging

2 participants