Skip to content

Commit 3037617

Browse files
committed
Fix tests to expect new error message.
Respond to dotnet/runtime#88974
1 parent afb9986 commit 3037617

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Servers/Kestrel/test/Interop.FunctionalTests/HttpClientHttp2InteropTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ public async Task ServerReset_BeforeResponse_ClientThrows(string scheme)
600600
var url = host.MakeUrl(scheme);
601601
using var client = CreateClient();
602602
var exception = await Assert.ThrowsAsync<HttpRequestException>(() => client.GetAsync(url)).DefaultTimeout();
603-
Assert.Equal("The HTTP/2 server reset the stream. HTTP/2 error code 'CANCEL' (0x8).", exception?.InnerException?.Message);
603+
Assert.Equal("The HTTP/2 server reset the stream. HTTP/2 error code 'CANCEL' (0x8). (HttpProtocolError)", exception?.InnerException?.Message);
604604
await host.StopAsync().DefaultTimeout();
605605
}
606606

@@ -629,7 +629,7 @@ public async Task ServerReset_AfterHeaders_ClientBodyThrows(string scheme)
629629
response.EnsureSuccessStatusCode();
630630
receivedHeaders.SetResult();
631631
var exception = await Assert.ThrowsAsync<HttpRequestException>(() => response.Content.ReadAsStringAsync()).DefaultTimeout();
632-
Assert.Equal("The HTTP/2 server reset the stream. HTTP/2 error code 'CANCEL' (0x8).", exception?.InnerException?.Message);
632+
Assert.Equal("The HTTP/2 server reset the stream. HTTP/2 error code 'CANCEL' (0x8). (HttpProtocolError)", exception?.InnerException?.Message);
633633
await host.StopAsync().DefaultTimeout();
634634
}
635635

0 commit comments

Comments
 (0)