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

Disable long running ReadAsync_CancelPendingTask_ThrowsCancellationException tests for some Http1 cases #72596

Merged
merged 1 commit into from
Jul 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ protected override async Task<StreamPair> CreateConnectedStreamsAsync()
Assert.True(pair.Stream2.CanRead);
return pair;
}

[Theory]
[InlineData(0)]
[InlineData(100)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/72586")]
#pragma warning disable xUnit1026 // unused parameter
public override Task ReadAsync_CancelPendingTask_ThrowsCancellationException(int cancellationDelay)
{
return Task.CompletedTask;
}
#pragma warning restore xUnit1026
}

public sealed class Http1RawResponseStreamConformanceTests : ResponseConnectedStreamConformanceTests
Expand All @@ -33,6 +44,17 @@ protected override async Task<StreamPair> CreateConnectedStreamsAsync()
Assert.True(pair.Stream2.CanRead);
return pair;
}

[Theory]
[InlineData(0)]
[InlineData(100)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/72586")]
#pragma warning disable xUnit1026 // unused parameter
public override Task ReadAsync_CancelPendingTask_ThrowsCancellationException(int cancellationDelay)
{
return Task.CompletedTask;
}
#pragma warning restore xUnit1026
}

public sealed class Http1ContentLengthResponseStreamConformanceTests : ResponseStandaloneStreamConformanceTests
Expand Down