Skip to content
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 @@ -1117,10 +1117,10 @@ await IgnoreExceptions(async () =>

[Fact]
[OuterLoop]
[ActiveIssue("https://github.com/dotnet/runtime/issues/39056")]
[SkipOnPlatform(TestPlatforms.Android, "Synchronous Send is not supported on Android")]
public async Task Send_TimeoutRequestContent_Throws()
{
var semaphore = new SemaphoreSlim(0);
await LoopbackServer.CreateClientAndServerAsync(
async uri =>
{
Expand All @@ -1146,12 +1146,14 @@ await LoopbackServer.CreateClientAndServerAsync(

TaskCanceledException ex = await Assert.ThrowsAsync<TaskCanceledException>(() => sendTask);
Assert.IsType<TimeoutException>(ex.InnerException);
semaphore.Release();
},
async server =>
{
await server.AcceptConnectionAsync(async connection =>
{
await IgnoreExceptions(connection.ReadRequestDataAsync());
await semaphore.WaitAsync();
Comment thread
ManickaP marked this conversation as resolved.
});
});
}
Expand Down
Loading