Skip to content

Commit 3e1ee3f

Browse files
committed
Revert "Disable parallel test execution for QUIC and HTTP/3 (dotnet#101569)"
This reverts commit 009d74e.
1 parent 1fc1dd8 commit 3e1ee3f

File tree

4 files changed

+3
-22
lines changed

4 files changed

+3
-22
lines changed

src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.Cookies.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private static CookieContainer CreateSingleCookieContainer(Uri uri, string cooki
4444
private static string GetCookieHeaderValue(string cookieName, string cookieValue) => $"{cookieName}={cookieValue}";
4545

4646
[Fact]
47-
public virtual async Task GetAsync_DefaultCoookieContainer_NoCookieSent()
47+
public async Task GetAsync_DefaultCoookieContainer_NoCookieSent()
4848
{
4949
await LoopbackServerFactory.CreateClientAndServerAsync(
5050
async uri =>

src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.AltSvc.cs

+1-6
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,10 @@ private HttpClient CreateHttpClient(Version version)
2929
return client;
3030
}
3131

32-
[ConditionalTheory]
32+
[Theory]
3333
[MemberData(nameof(AltSvcHeaderUpgradeVersions))]
3434
public async Task AltSvc_Header_Upgrade_Success(Version fromVersion, bool overrideHost)
3535
{
36-
if (UseVersion == HttpVersion30 && fromVersion == HttpVersion.Version11 && overrideHost)
37-
{
38-
throw new SkipTestException("https://github.com/dotnet/runtime/issues/91757");
39-
}
40-
4136
// The test makes a request to a HTTP/1 or HTTP/2 server first, which supplies an Alt-Svc header pointing to the second server.
4237
using GenericLoopbackServer firstServer =
4338
fromVersion.Major switch

src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs

-14
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,6 @@ public SocketsHttpHandler_HttpClientHandler_MaxResponseHeadersLength_Http2(ITest
16331633
protected override Version UseVersion => HttpVersion.Version20;
16341634
}
16351635

1636-
[Collection(nameof(DisableParallelization))]
16371636
[ConditionalClass(typeof(HttpClientHandlerTestBase), nameof(IsQuicSupported))]
16381637
[ActiveIssue("https://github.com/dotnet/runtime/issues/91757")]
16391638
[ActiveIssue("https://github.com/dotnet/runtime/issues/101015")]
@@ -4028,51 +4027,41 @@ public SocketsHttpHandler_HttpClientHandler_Cancellation_Test_Http2(ITestOutputH
40284027
protected override Version UseVersion => HttpVersion.Version20;
40294028
}
40304029

4031-
[Collection(nameof(DisableParallelization))]
40324030
[ConditionalClass(typeof(HttpClientHandlerTestBase), nameof(IsQuicSupported))]
40334031
public sealed class SocketsHttpHandlerTest_HttpClientHandlerTest_Http3 : HttpClientHandlerTest
40344032
{
40354033
public SocketsHttpHandlerTest_HttpClientHandlerTest_Http3(ITestOutputHelper output) : base(output) { }
40364034
protected override Version UseVersion => HttpVersion.Version30;
40374035
}
40384036

4039-
[Collection(nameof(DisableParallelization))]
40404037
[ConditionalClass(typeof(HttpClientHandlerTestBase), nameof(IsQuicSupported))]
40414038
public sealed class SocketsHttpHandlerTest_Cookies_Http3 : HttpClientHandlerTest_Cookies
40424039
{
40434040
public SocketsHttpHandlerTest_Cookies_Http3(ITestOutputHelper output) : base(output) { }
40444041
protected override Version UseVersion => HttpVersion.Version30;
4045-
4046-
[Fact]
4047-
[ActiveIssue("https://github.com/dotnet/runtime/issues/91757")]
4048-
public override Task GetAsync_DefaultCoookieContainer_NoCookieSent() { return null!; }
40494042
}
40504043

4051-
[Collection(nameof(DisableParallelization))]
40524044
[ConditionalClass(typeof(HttpClientHandlerTestBase), nameof(IsQuicSupported))]
40534045
public sealed class SocketsHttpHandlerTest_HttpClientHandlerTest_Headers_Http3 : HttpClientHandlerTest_Headers
40544046
{
40554047
public SocketsHttpHandlerTest_HttpClientHandlerTest_Headers_Http3(ITestOutputHelper output) : base(output) { }
40564048
protected override Version UseVersion => HttpVersion.Version30;
40574049
}
40584050

4059-
[Collection(nameof(DisableParallelization))]
40604051
[ConditionalClass(typeof(HttpClientHandlerTestBase), nameof(IsQuicSupported))]
40614052
public sealed class SocketsHttpHandler_HttpClientHandler_Cancellation_Test_Http3 : SocketsHttpHandler_Cancellation_Test
40624053
{
40634054
public SocketsHttpHandler_HttpClientHandler_Cancellation_Test_Http3(ITestOutputHelper output) : base(output) { }
40644055
protected override Version UseVersion => HttpVersion.Version30;
40654056
}
40664057

4067-
[Collection(nameof(DisableParallelization))]
40684058
[ConditionalClass(typeof(HttpClientHandlerTestBase), nameof(IsQuicSupported))]
40694059
public sealed class SocketsHttpHandler_HttpClientHandler_AltSvc_Test_Http3 : HttpClientHandler_AltSvc_Test
40704060
{
40714061
public SocketsHttpHandler_HttpClientHandler_AltSvc_Test_Http3(ITestOutputHelper output) : base(output) { }
40724062
protected override Version UseVersion => HttpVersion.Version30;
40734063
}
40744064

4075-
[Collection(nameof(DisableParallelization))]
40764065
[ConditionalClass(typeof(HttpClientHandlerTestBase), nameof(IsQuicSupported))]
40774066
public sealed class SocketsHttpHandler_HttpClientHandler_Finalization_Http3 : HttpClientHandler_Finalization_Test
40784067
{
@@ -4237,7 +4226,6 @@ public SocketsHttpHandler_RequestContentLengthMismatchTest_Http2(ITestOutputHelp
42374226
protected override Version UseVersion => HttpVersion.Version20;
42384227
}
42394228

4240-
[Collection(nameof(DisableParallelization))]
42414229
[ConditionalClass(typeof(HttpClientHandlerTestBase), nameof(IsQuicSupported))]
42424230
public sealed class SocketsHttpHandler_RequestContentLengthMismatchTest_Http3 : SocketsHttpHandler_RequestContentLengthMismatchTest
42434231
{
@@ -4414,7 +4402,6 @@ public SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http2(ITestOutputHelpe
44144402
protected override Version UseVersion => HttpVersion.Version20;
44154403
}
44164404

4417-
[Collection(nameof(DisableParallelization))]
44184405
[ConditionalClass(typeof(HttpClientHandlerTestBase), nameof(IsQuicSupported))]
44194406
public sealed class SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http3 : SocketsHttpHandler_SecurityTest
44204407
{
@@ -4543,7 +4530,6 @@ await Http11LoopbackServerFactory.Singleton.CreateClientAndServerAsync(async uri
45434530
}
45444531
}
45454532

4546-
[Collection(nameof(DisableParallelization))]
45474533
[ConditionalClass(typeof(HttpClientHandlerTestBase), nameof(IsQuicSupported))]
45484534
public sealed class SocketsHttpHandler_HttpRequestErrorTest_Http30 : SocketsHttpHandler_HttpRequestErrorTest
45494535
{

src/libraries/System.Net.Quic/tests/FunctionalTests/QuicTestCollection.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
namespace System.Net.Quic.Tests;
1717

18-
[CollectionDefinition(nameof(QuicTestCollection), DisableParallelization = true)]
18+
[CollectionDefinition(nameof(QuicTestCollection))]
1919
public unsafe class QuicTestCollection : ICollectionFixture<QuicTestCollection>, IDisposable
2020
{
2121
public static bool IsSupported => QuicListener.IsSupported && QuicConnection.IsSupported;

0 commit comments

Comments
 (0)