Skip to content

Commit b259da1

Browse files
authored
handle QuicConnectionAbortedException (#56785)
1 parent b690695 commit b259da1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.IO;
66
using System.Linq;
77
using System.Net.Http.Headers;
8+
using System.Net.Quic;
89
using System.Net.Test.Common;
910
using System.Text;
1011
using System.Threading.Tasks;
@@ -407,7 +408,6 @@ public async Task SendAsync_GetWithInvalidHostHeader_ThrowsException()
407408
}
408409

409410
[Fact]
410-
[ActiveIssue("https://github.com/dotnet/runtime/issues/56292")]
411411
[ActiveIssue("https://github.com/dotnet/runtime/issues/54160", TestPlatforms.Browser)]
412412
public async Task SendAsync_WithZeroLengthHeaderName_Throws()
413413
{
@@ -429,6 +429,7 @@ await server.HandleRequestAsync(headers: new[]
429429
});
430430
}
431431
catch (IOException) { }
432+
catch (QuicConnectionAbortedException) { }
432433
});
433434
}
434435

0 commit comments

Comments
 (0)