Skip to content

Commit 78f7afb

Browse files
committed
React to NetworkException type
1 parent 9a4f882 commit 78f7afb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Servers/Kestrel/test/FunctionalTests/ConnectionMiddlewareTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public async Task ThrowingSynchronousConnectionMiddlewareDoesNotCrashServer()
2727
using (var connection = server.CreateConnection())
2828
{
2929
// Will throw because the exception in the connection adapter will close the connection.
30-
await Assert.ThrowsAsync<IOException>(async () =>
30+
await Assert.ThrowsAnyAsync<IOException>(async () =>
3131
{
3232
await connection.Send(
3333
"POST / HTTP/1.0",

0 commit comments

Comments
 (0)