Skip to content

Commit 84f63a4

Browse files
committed
Disabled problematic error in H/2
1 parent 30769dd commit 84f63a4

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/libraries/System.Net.Http/tests/StressTests/HttpStress/ClientOperations.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,12 @@ public static (string name, Func<RequestContext, Task> operation)[] Operations =
482482

483483
private static void ValidateStatusCode(HttpResponseMessage m, HttpStatusCode expectedStatus = HttpStatusCode.OK)
484484
{
485+
// [ActiveIssue("https://github.com/dotnet/runtime/issues/55261")]
486+
if (m.StatusCode == HttpStatusCode.InternalServerError)
487+
{
488+
throw new Exception("IGNORE");
489+
}
490+
485491
if (m.StatusCode != expectedStatus)
486492
{
487493
throw new Exception($"Expected status code {expectedStatus}, got {m.StatusCode}");

src/libraries/System.Net.Http/tests/StressTests/HttpStress/StressClient.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,11 @@ async Task RunWorker(int taskNum)
209209
{
210210
_aggregator.RecordCancellation(opIndex, stopwatch.Elapsed);
211211
}
212+
catch (Exception e) when (e.Message == "IGNORE")
213+
{
214+
// [ActiveIssue("https://github.com/dotnet/runtime/issues/55261")]
215+
// See ClientOperations.ValidateStatusCode
216+
}
212217
catch (Exception e)
213218
{
214219
_aggregator.RecordFailure(e, opIndex, stopwatch.Elapsed, requestContext.IsCancellationRequested, taskNum: taskNum, iteration: i);

0 commit comments

Comments
 (0)