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

Enable Http2.SocketSendQueueFull_RequestCanceled_ThrowsOperationCanceled #56723

Merged
merged 4 commits into from
Aug 4, 2021
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Run test in a loop
  • Loading branch information
alnikola committed Aug 3, 2021
commit c3a5e67ae989182d5d23bff8eea47972c3767a30
Original file line number Diff line number Diff line change
Expand Up @@ -3578,11 +3578,18 @@ await Http2LoopbackServer.CreateClientAndServerAsync(
}
});
}

public static IEnumerable<object[]> LongRunning()
{
return Enumerable.Repeat(true, 100).Select((b, i) => new object[] { i % 2 == 0 }).ToArray();
}

[Fact]
[ConditionalTheory(nameof(SupportsAlpn))]
[MemberData(nameof(LongRunning))]
[OuterLoop("Uses Task.Delay")]
public async Task SocketSendQueueFull_RequestCanceled_ThrowsOperationCanceled()
public async Task SocketSendQueueFull_RequestCanceled_ThrowsOperationCanceled(bool b)
{
Assert.Equal(b, b);
TaskCompletionSource clientComplete = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously);

await Http2LoopbackServer.CreateClientAndServerAsync(
Expand Down